直接运行没问题,打包报错
Error:Execution failed for task ':app:transformClassesWithMultidexlistForRelease'.
java.io.IOException: Can't read F:\studiospace2\I`love_school\app\build\intermediates\transforms\jarMerging\release\jars\1\1f\combined.jar)
jar包冲突了,你看看是不是 有两个combined.jar 打包时打进去一个就行了。
后面还有
Error:Execution failed for task ':app:transformClassesWithMultidexlistForRelease'.
java.io.IOException: Can't read F:\studiospace2\I`love_school\app\build\intermediates\transforms\jarMerging\release\jars\1\1f\combined.jar)
\combined.jar] (Can't process class com/aprilbrother/aprilbrothersdk/services/ABeaconUartService$1.class)
在你的build下面加上
lintOptions {
checkReleaseBuilds false
abortOnError false
}
defaultConig{
multiDexEnabled true
}
已解决,是proguard问题