应用调试问题

Posted

技术标签:

【中文标题】应用调试问题【英文标题】:App debug issue 【发布时间】:2017-01-09 12:27:25 【问题描述】:

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

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

按需配置并行执行是一项孵化功能。 增量java编译是一个孵化特性。 :app:preBuild UP-TO-DATE :app:preDebugBuild UP-TO-DATE :app: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 :app:prepareDebugDependencies :app:compileDebugAidl 最新 :app:compileDebugRenderscript 最新 :app:generateDebugBuildConfig 最新 :app:generateDebugResValues 最新 :app:processDebugGoogleServices 解析json文件:D:\OnGoiningProjrct\drzone\app\google-services.json :app:generateDebugResources :app:mergeDebugResources 错误:java.util.concurrent.ExecutionException:com.android.ide.common.process.ProcessException: :app:mergeDebugResources 失败

FAILURE:构建失败并出现异常。

出了什么问题: 任务 ':app:mergeDebugResources' 执行失败。

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

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

构建失败

总时间:10.975 秒

【问题讨论】:

试试这个***.com/questions/17121033/… 不是已经添加了更新版本的类路径 检查 google-services.json 是否在您的应用文件夹中。 当前应用 google-services.json 已经存在 【参考方案1】:

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

【讨论】:

链接已经提到了它关于类路径的说法类路径已经添加了更新版本 让我研究一下,然后我会告诉你确切的答案。 知道了,它的图像问题删除了最后添加的图像然后问题解决了

以上是关于应用调试问题的主要内容,如果未能解决你的问题,请参考以下文章

调试android应用程序[关闭]

运行或调试应用程序时出现问题

如何调试 Flask 应用程序

Android:应用程序在调试过程中关闭

无法调试 Android 应用程序

在 ubuntu linux 中调试 kivy 应用程序时出现问题,当我尝试调试应用程序时,它开始导入要求,然后显示错误并退出