Gradle sync failed: 'xxx' already disposed
解决方案:
检查.iml 是否正确生成,如果名字错误,则重新进行import,再次编译.
项目查错命令
./gradlew clean assembleDebug
或
./gradlew compileDebugJavaWithJavac
打包命令
./gradlew assembleRelease
或
./gradlew aR
./gradlew assembleDebug
解决方案:
检查.iml 是否正确生成,如果名字错误,则重新进行import,再次编译.
./gradlew clean assembleDebug
或
./gradlew compileDebugJavaWithJavac
./gradlew assembleRelease
或
./gradlew aR
./gradlew assembleDebug
本文标题:Gradle 编译
本文链接:https://www.haomeiwen.com/subject/gtfabqtx.html
网友评论