Android Studio 錯誤處理總結

1.
android

養成注意查看各類提示的好習慣,從log中找出各類有效的線索來解決問題。架構

問題:昨晚還能跑起來,早上不能跑了app

報錯,查看Event log 提示以下:ui

11:21:24 Gradle build finished with 16 error(s) in 1m 2s 328ms
11:21:26 Session 'app': Error Installing APKspa

查看Console提示以下:
.net

04/14 11:23:10: Launching app
The currently selected variant "debug" uses split APKs, but none of the 1 split apks are compatible with the current device with density "480" and ABIs "x86, armeabi-v7a".
Error while Installing APKdebug

忽然想起設定過:code

ndk {
    //設置支持的SO庫架構
    abiFilters 'armeabi' //, 'x86' , 'armeabi-v7a', 'x86_64', 'arm64-v8a'
}

馬上將x86釋放出來,問題得意解決。blog



2.ip

Android Studio com.android.dex.DexException: Multiple dex files define(重複引用包)                    

http://blog.csdn.net/hyr83960944/article/details/41825087

頗有效

相關文章
相關標籤/搜索