在project下 build.gradle 中
dependencies {
classpath 'com.github.dcendents:android-maven-gradle-plugin:1.3'
}
在app下 build.gradle中
dependencies {
compile project(':libraryzxing')
}
android {
compileSdkVersion 23
buildToolsVersion "23.0.1"
defaultConfig {
applicationId "erweima_demo.my_zxingdemo"
minSdkVersion 11
targetSdkVersion 23
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
testCompile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:23.0.1'
compile project(':libraryzxing')
}