Project with path ':mypath' could not be found in root project 'myproject'
不仅要在build.gradle里面配置
dependencies {
compile fileTree(include: '*.jar', dir: 'libs')
implementation project(':baselib')
}
还需要在setting.gralde里面配置
include ":"
include ":CordovaLib"
include ":baselib"
- Error:Execution failed for task ':app:transformDexArchiveWithExternalLibsDexMergerForDebug'.
java.lang.RuntimeException: com.android.builder.dexing.DexArchiveMergerException: Unable to merge dex
这是因为导包重复了,仔细检查重复的包