我在使用Android Studio(0.1.5)編譯應用程序時遇到問題。該應用程序使用2個庫,其中包括以下內容:settings.gradleinclude ':myapp',':library',':android-ColorPickerPreference'的build.gradlebuildscript { repositories { mavenCentral() } dependencies { classpath 'com.android.tools.build:gradle:0.4' }}apply plugin: 'android'dependencies { compile files('libs/android-support-v4.jar') compile project(':library') compile project(':android-ColorPickerPreference')}android { compileSdkVersion 17 buildToolsVersion "17.0.0" defaultConfig { minSdkVersion 7 targetSdkVersion 16 }}編譯時收到以下消息: Gradle: A problem occurred configuring project ':myapp'. > Failed to notify project evaluation listener. > Configuration with name 'default' not found.您能幫我這個消息嗎?謝謝!
3 回答

哆啦的時光機
TA貢獻1779條經驗 獲得超6個贊
我忘了拉所有子模塊。所以我的
compile project(':something')
無法解決。
解
git submodule update --init
- 3 回答
- 0 關注
- 725 瀏覽
添加回答
舉報
0/150
提交
取消