1、離線問題
a、問題詳情
Error:No cached version of com.orhanobut:logger:1.15 available for offline mode.Disable Gradle 'offline mode' and sync project
b、解決辦法
此錯(cuò)誤是由于Gradle設(shè)置中選中了Toggle Offline Mode 導(dǎo)致的,常規(guī)解決辦法是點(diǎn)擊Gradle ProJect 欄,取消選中Toggle Offline Mode。
2、小米手機(jī)測(cè)試問題
a、問題詳情
Installation failed with message Failed to establish session.
It is possible that this issue is resolved by uninstalling an existing version of the apk if it is present, and then re-installing.
WARNING: Uninstalling will remove the application data!
Do you want to uninstall the existing application?
b、解決辦法
MIUI開發(fā)者選項(xiàng)中關(guān)閉MIUI優(yōu)化
3、Gradle版本變化異常
問題詳情:
Error:Failed to open zip file.Gradle's dependency cache may be corrupt (this sometimes occurs after a network connection timeout.)Re-download dependencies and sync project (requires network)Re-download dependencies and sync project (requires network)
解決辦法:gradle-wrapper.properties里面將distributionUrl屬性換成本地有的gradle版本即可。