DynamicLoadApk Demo的一些问题

298 阅读1分钟

记录一下 编译DynamicLoadApk遇到N多问题 1 錯誤1 Error:Execution failed for task ‘:app:transformDexArchiveWithExternalLibsDexMerg 这个错误在我这是重复编译V4包导致

compile fileTree(dir: 'libs', include: ['*.jar']) compile project(':lib')

在工程lib下的libs目录下有V4包,main-host下也有V4包 本工程libs下也就只有一个V4包,去掉compile fileTree(dir: 'libs', include: ['*.jar'])即可

错误2: Error:Unsupported method: BaseConfig.getApplicationIdSuffix(). The version o 将gradle版本调高