应用调试问题

时间:2017-01-09 12:27:26

标签: android debugging release

当我调试我的应用程序时,它会显示错误     建立失败

总时间:1分41.485秒 执行任务:[:app:generateDebugSources,:app:generateDebugAndroidTestSources,:app:mockableAndroidJar,:app:prepareDebugUnitTestDependencies]

按需配置并行执行是一项孵化功能。 增量java编译是一个孵化功能。 :app:preBuild UP-TO-DATE :app:preDebugBuild UP-TO-DATE :应用:checkDebugManifest :app:preReleaseBuild UP-TO-DATE :app:prepareComAndroidSupportAnimatedVectorDrawable2421Library UP-TO-DATE :app:prepareComAndroidSupportAppcompatV72421Library UP-TO-DATE :app:prepareComAndroidSupportDesign2421Library UP-TO-DATE :app:prepareComAndroidSupportMediarouterV72300Library UP-TO-DATE :app:preDebugAndroidTestBuild UP-TO-DATE :app:prepareComAndroidSupportMultidex101Library UP-TO-DATE :app:prepareComAndroidSupportRecyclerviewV72421Library UP-TO-DATE :app:prepareComAndroidSupportSupportCompat2421Library UP-TO-DATE :app:prepareComAndroidSupportSupportCoreUi2421Library UP-TO-DATE :app:prepareComAndroidSupportSupportCoreUtils2421Library UP-TO-DATE :app:prepareComAndroidSupportSupportFragment2421Library UP-TO-DATE :app:prepareComAndroidSupportSupportMediaCompat2421Library UP-TO-DATE :app:prepareComAndroidSupportSupportV42421Library UP-TO-DATE :app:prepareComAndroidSupportSupportVectorDrawable2421Library UP-TO-DATE :app:prepareComFacebookAndroidFacebookAndroidSdk450Library UP-TO-DATE :app:prepareComGoogleAndroidGmsPlayServices940Library UP-TO-DATE :app:prepareComGoogleAndroidGmsPlayServicesAds940Library UP-TO-DATE :app:prepareComGoogleAndroidGmsPlayServicesAdsLite940Library UP-TO-DATE :app:prepareComGoogleAndroidGmsPlayServicesAnalytics940Library UP-TO-DATE :app:prepareComGoogleAndroidGmsPlayServicesAnalyticsImpl940Library UP-TO-DATE :app:prepareComGoogleAndroidGmsPlayServicesAppindexing940Library UP-TO-DATE :app:prepareComGoogleAndroidGmsPlayServicesAppinvite940Library UP-TO-DATE :app:prepareComGoogleAndroidGmsPlayServicesAuth940Library UP-TO-DATE :app:prepareComGoogleAndroidGmsPlayServicesAuthBase940Library UP-TO-DATE :app:prepareComGoogleAndroidGmsPlayServicesBase940Library UP-TO-DATE :app:prepareComGoogleAndroidGmsPlayServicesBasement940Library UP-TO-DATE :app:prepareComGoogleAndroidGmsPlayServicesCast940Library UP-TO-DATE :app:prepareComGoogleAndroidGmsPlayServicesCastFramework940Library UP-TO-DATE :app:prepareComGoogleAndroidGmsPlayServicesClearcut940Library UP-TO-DATE :app:prepareComGoogleAndroidGmsPlayServicesContextmanager940Library UP-TO-DATE :app:prepareComGoogleAndroidGmsPlayServicesDrive940Library UP-TO-DATE :app:prepareComGoogleAndroidGmsPlayServicesFitness940Library UP-TO-DATE :app:prepareComGoogleAndroidGmsPlayServicesGames940Library UP-TO-DATE :app:prepareComGoogleAndroidGmsPlayServicesGass940Library UP-TO-DATE :app:prepareComGoogleAndroidGmsPlayServicesGcm940Library UP-TO-DATE :app:prepareComGoogleAndroidGmsPlayServicesIdentity940Library UP-TO-DATE :app:prepareComGoogleAndroidGmsPlayServicesIid940Library UP-TO-DATE :app:prepareComGoogleAndroidGmsPlayServicesLocation940Library UP-TO-DATE :app:prepareComGoogleAndroidGmsPlayServicesMaps940Library UP-TO-DATE :app:prepareComGoogleAndroidGmsPlayServicesNearby940Library UP-TO-DATE :app:prepareComGoogleAndroidGmsPlayServicesPanorama940Library UP-TO-DATE :app:prepareComGoogleAndroidGmsPlayServicesPlaces940Library UP-TO-DATE :app:prepareComGoogleAndroidGmsPlayServicesPlus940Library UP-TO-DATE :app:prepareComGoogleAndroidGmsPlayServicesSafetynet940Library UP-TO-DATE :app:prepareComGoogleAndroidGmsPlayServicesTagmanager940Library UP-TO-DATE :app:prepareComGoogleAndroidGmsPlayServicesTagmanagerApi940Library UP-TO-DATE :app:prepareComGoogleAndroidGmsPlayServicesTasks940Library UP-TO-DATE :app:prepareComGoogleAndroidGmsPlayServicesVision940Library UP-TO-DATE :app:prepareComGoogleAndroidGmsPlayServicesWallet940Library UP-TO-DATE :app:prepareComGoogleAndroidGmsPlayServicesWearable940Library UP-TO-DATE :app:prepareComGoogleFirebaseFirebaseAnalytics940Library UP-TO-DATE :app:prepareComGoogleFirebaseFirebaseAnalyticsImpl940Library UP-TO-DATE :app:prepareComGoogleFirebaseFirebaseAuth940Library UP-TO-DATE :app:prepareComGoogleFirebaseFirebaseAuthCommon940Library UP-TO-DATE :app:prepareComGoogleFirebaseFirebaseAuthModule940Library UP-TO-DATE :app:prepareComGoogleFirebaseFirebaseCommon940Library UP-TO-DATE :app:prepareComGoogleFirebaseFirebaseConfig940Library UP-TO-DATE :app:prepareComGoogleFirebaseFirebaseCore940Library UP-TO-DATE :app:prepareComGoogleFirebaseFirebaseCrash940Library UP-TO-DATE :app:prepareComGoogleFirebaseFirebaseDatabase940Library UP-TO-DATE :app:prepareComGoogleFirebaseFirebaseDatabaseConnection940Library UP-TO-DATE :app:prepareComGoogleFirebaseFirebaseIid940Library UP-TO-DATE :app:prepareComGoogleFirebaseFirebaseMessaging940Library UP-TO-DATE :app:prepareComGoogleFirebaseFirebaseStorage940Library UP-TO-DATE :app:prepareComGoogleFirebaseFirebaseStorageCommon940Library UP-TO-DATE :app:prepareComGoogleMapsAndroidAndroidMapsUtils044Library UP-TO-DATE :app:prepareComToptocheSearchablespinnerSearchablespinnerlibrary131Library UP-TO-DATE :app:prepareOrgSolovyevAndroidViewsLinearLayoutManager05Library UP-TO-DATE :应用:prepareDebugDependencies :app:compileDebugAidl UP-TO-DATE :app:compileDebugRenderscript UP-TO-DATE :app:generateDebugBuildConfig UP-TO-DATE :app:generateDebugResValues UP-TO-DATE :应用:processDebugGoogleServices 解析json文件:D:\ OnGoiningProjrct \ drzone \ app \ google-services.json :应用:generateDebugResources :应用:mergeDebugResources 错误:java.util.concurrent.ExecutionException:com.android.ide.common.process.ProcessException: :app:mergeDebugResources FAILED

失败:构建因异常而失败。

  • 出了什么问题: 任务':app:mergeDebugResources'。

    的执行失败
      

    错误:java.util.concurrent.ExecutionException:com.android.ide.common.process.ProcessException:

  • 尝试: 使用--stacktrace选项运行以获取堆栈跟踪。使用--info或--debug选项运行以获得更多日志输出。

建立失败

总时间:10.975秒

1 个答案:

答案 0 :(得分:0)

在/ app文件夹中添加google-services.json文件,然后重试。使用Google Play服务SDK时,此文件是必需的。