久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

Android Studio:意外的頂級(jí)異常(以非零退出值 2.. 結(jié)

Android Studio: Unexpected top level exception (finished with non-zero exit value 2..)(Android Studio:意外的頂級(jí)異常(以非零退出值 2.. 結(jié)束))
本文介紹了Android Studio:意外的頂級(jí)異常(以非零退出值 2.. 結(jié)束)的處理方法,對(duì)大家解決問題具有一定的參考價(jià)值,需要的朋友們下面隨著小編來一起學(xué)習(xí)吧!

問題描述

當(dāng)我嘗試調(diào)試我的 android 應(yīng)用程序時(shí),我收到以下錯(cuò)誤消息:

When i'm trying to debug my android app i'm getting the following error message:

錯(cuò)誤:任務(wù)執(zhí)行失敗':app:transformClassesWithDexForDebug'.

Error:Execution failed for task ':app:transformClassesWithDexForDebug'.

com.android.build.transform.api.TransformException: com.android.ide.common.process.ProcessException:org.gradle.process.internal.ExecException:進(jìn)程'命令'/庫/Java/JavaVirtualMachines/jdk1.8.0_31.jdk/Contents/Home/bin/java''以非零退出值 2 結(jié)束

com.android.build.transform.api.TransformException: com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command '/Library/Java/JavaVirtualMachines/jdk1.8.0_31.jdk/Contents/Home/bin/java'' finished with non-zero exit value 2

錯(cuò)誤首先出現(xiàn)在添加新依賴項(xiàng)時(shí).這是我的 gradle 文件

The error first appeared on adding a new dependency. This is my gradle file

compile 'com.android.support:appcompat-v7:23.0.1'
compile 'com.android.support:design:23.0.1'
compile 'com.android.support:recyclerview-v7:23.0.1'
compile 'com.google.dagger:dagger:2.0.1'
apt 'com.google.dagger:dagger-compiler:2.0.1'
provided 'javax.annotation:jsr250-api:1.0'

compile 'com.jakewharton:butterknife:7.0.1'
compile 'de.greenrobot:eventbus:2.4.0'
// Icepick
compile 'frankiesardo:icepick:3.1.0'
provided 'frankiesardo:icepick-processor:3.1.0'
// Mosby
compile 'com.hannesdorfmann.mosby:mvp:2.0.0'
compile 'com.hannesdorfmann.parcelableplease:annotation:1.0.1'
apt 'com.hannesdorfmann.parcelableplease:processor:1.0.1'

compile 'com.ogaclejapan.smarttablayout:library:1.4.2@aar'
compile 'com.ogaclejapan.smarttablayout:utils-v4:1.4.2@aar'
compile 'com.ogaclejapan.smarttablayout:utils-v13:1.4.2@aar'

當(dāng)我嘗試使用 smarttablayout 時(shí)出現(xiàn)錯(cuò)誤.使用 gradle 1.4 版本.有誰知道怎么回事?

The error appears when i'm trying to use the smarttablayout. Using the gradle 1.4 Version. Does anybody know what is wrong?

推薦答案

昨天剛遇到這個(gè)問題.我通過手動(dòng)刪除 build/app/build/ 文件夾并再次構(gòu)建項(xiàng)目來修復(fù)它.

Just had the issue yesterday. I fixed it by manually removing the build/ and app/build/ folders, and by building the project again.

但它也可能來自其他東西,比如您的應(yīng)用達(dá)到 65k 方法限制(在什么情況下)案例使用 Gradle 為 Multidex 配置您的應(yīng)用程序"將解決您的問題).因此,您需要提供完整的 Gradle 日志,以便我們能夠更詳細(xì)地檢查問題可能是什么.

But it also might come from something else like your app reaching the 65k methods limit (in what case "Configuring Your App for Multidex with Gradle" will fix your issue). So you will need to provide the full Graddle log for us to be able to check more in detail what the issue could be.

這篇關(guān)于Android Studio:意外的頂級(jí)異常(以非零退出值 2.. 結(jié)束)的文章就介紹到這了,希望我們推薦的答案對(duì)大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

【網(wǎng)站聲明】本站部分內(nèi)容來源于互聯(lián)網(wǎng),旨在幫助大家更快的解決問題,如果有圖片或者內(nèi)容侵犯了您的權(quán)益,請(qǐng)聯(lián)系我們刪除處理,感謝您的支持!

相關(guān)文檔推薦

IncompatibleClassChangeError after updating to Android Build Tools 25.1.6 GCM / FCM(更新到 Android Build Tools 25.1.6 GCM/FCM 后出現(xiàn) IncompatibleClassChangeError)
How to get current flavor in gradle(如何在 gradle 中獲取當(dāng)前風(fēng)味)
How to fix quot;unexpected element lt;queriesgt; found in lt;manifestgt;quot; error?(如何修復(fù)“意外元素lt;查詢gt;在“清單中找到錯(cuò)誤?)
Multi flavor app based on multi flavor library in Android Gradle(基于 Android Gradle 中多風(fēng)味庫的多風(fēng)味應(yīng)用)
Android dependency has different version for the compile and runtime(Android 依賴在編譯和運(yùn)行時(shí)有不同的版本)
Transitive dependencies for local aar library(本地 aar 庫的傳遞依賴)
主站蜘蛛池模板: 福利一区二区 | 午夜爽爽爽男女免费观看 | 激情六月丁香婷婷 | av资源网站| 亚洲精品一区二区三区中文字幕 | 欧美精品一区二区三区在线播放 | 国产精品资源在线 | 欧美一区二区三区视频 | 99精品视频在线 | 精品视频在线观看 | 男人av的天堂 | 高清av在线 | 日韩二三区 | 久久久久久国产 | 国产95在线| 亚洲av一级毛片 | 日韩毛片在线观看 | 亚洲午夜视频 | 亚洲精品1区 | 精品在线 | 日韩在线观看中文字幕 | 国产精品网页 | 欧美v免费| 在线观看亚洲专区 | 国产日韩欧美在线 | 91精品国产一区二区三区 | 欧美日韩精品久久久免费观看 | 欧美日韩在线播放 | 亚洲国产欧美日韩 | 精品国产乱码一区二区三区 | 在线国产一区 | 国产婷婷色综合av蜜臀av | 日韩电影免费在线观看中文字幕 | 三级成人片| 日韩成人在线免费视频 | 久久精品国产亚洲一区二区三区 | 色橹橹欧美在线观看视频高清 | 天天综合日日夜夜 | 欧美日一区二区 | 中文字幕在线精品 | 国产毛片久久久 |