1、离线问题
a、问题详情
Error:No cached version of com.orhanobut:logger:1.15 available for offline mode.Disable Gradle 'offline mode' and sync project
b、解决办法
此错误是由于Gradle设置中选中了Toggle Offline Mode 导致的,常规解决办法是点击Gradle ProJect 栏,取消选中Toggle Offline Mode。
2、小米手机测试问题
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开发者选项中关闭MIUI优化
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版本即可。
网友评论