Android Studio中引入module报错


将A工程作为另B工程的library导入到AS中,报出"could not find property 'ANDROID_BUILD_SDK_VERSION' on project ':my-library' "。请问一下,应该怎么解决?

Android android-studio

biiiii 9 years ago

:my-library中确定要有build.gradle文件。
里面的内容大致为


 apply plugin: 'com.android.library'


android {
    compileSdkVersion 21
    buildToolsVersion '21.0.1'
}

zzy3149 answered 9 years ago

Your Answer