首先贴出错误日志:
Error:Execution failed for task ':o2osdk:transformClassesAndResourcesWithProguardForRelease'.
> java.io.IOException: Input jars and output jars must be different [D:\StudioProjects\NewTestDemo\o2osdk\libs\o2osdk-lib.jar].
原因是inputjar 与outputjar不一样,解决办法是将proguard-rules.pro中
-injars bin/classes
-injars libs
-outjars bin/classes-processed.jar
-libraryjars /usr/local/java/android-sdk/platforms/android-9/android.jar
都删除掉,因为Android Gradle plugin 已经调用了,不需要我们自己去弄
详细可查看:这里