我正在制作我的第一个Android服装应用程序,但我无法让Android Studio工作.首先我得到了错误
"Project with path ':wear' could not be found in project ':mobile'.
Run Code Online (Sandbox Code Playgroud)
这是通过添加"include ':wear"来解决的settings.gradle.
但随后出现了一个新错误:
"Error:Module version Test2:mobile:unspecified, configuration 'wearApp' declares a dependency on configuration 'default' which is not declared in the module descriptor for Test2:wear:unspecified" .
Run Code Online (Sandbox Code Playgroud)
我该怎么做才能解决这个错误?
以防万一需要:这里是build.gradle:
apply plugin: 'com.android.application'
android {
compileSdkVersion 23
buildToolsVersion "23.0.2"
defaultConfig {
applicationId "com.verbraeken.joost.test2"
minSdkVersion 19
targetSdkVersion 23
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
} …Run Code Online (Sandbox Code Playgroud)