1、Error:Finish can only be called once.
(Gradle版本问题,可查看ProjectStructure中项目的Gradle版本和Setting中Gradle版本修改为一致的)。
2、 Error:java.util.concurrent.ExecutionException: java.util.concurrent.ExecutionException: com.android.tools.aapt2.Aapt2Exception: AAPT2 error: check logs for details Error:java.util.concurrent.ExecutionException: com.android.tools.aapt2.Aapt2Exception: AAPT2 error: check logs for details Error:com.android.tools.aapt2.Aapt2Exception: AAPT2 error: check logs for details Error:Execution failed for task ‘:baiduWalletRefactorLib:processDebugAndroidTestResources’. Failed to execute aapt
在gradle 3.0.0中AAPT2是默认打开的,在项目的gradle.properties中添加android.enableAapt2=false即可
3、Multiple dex files define Lcom/dindmao/plugin/BuildConfig
检查module的AndroidManifest.xml文件的包名是否相同,修改即可