Apply the plugin: '. Com. Android application '
Android {
CompileSdkVersion 28
BuildToolsVersion '28.0.0'
DefaultConfig {
ApplicationId com. Example. "junior"
MinSdkVersion 16
TargetSdkVersion 28
VersionCode 1
VersionName "1.0"
}
BuildTypes {
Release {
MinifyEnabled false
ProguardFiles getDefaultProguardFile (' proguard - android. TXT), 'proguard - rules. Pro'
}
}
}
Dependencies {
Implementation fileTree (dir: 'libs', include: [' *. Jar'])
TestImplementation 'junit: junit: 4.12'
implementation 'com. Android. Support: appcompat - v7:28.0.0'
}
CodePudding user response:
If the import in project way, the book with all the modules in the source code package can compile and run normally,CodePudding user response:
Build androidX 28 for migrationCodePudding user response:
Junior should be a complete project, want to lib import need to change the attributes of his project to the library to compile, you put the junior build. GradleCodePudding user response:
The library under the project of the build. Gradle - & gt; BuildTypes {.. } - & gt; MinifyEnabled attribute set to falseBuildTypes {
Release {
MinifyEnabled false
ProguardFiles getDefaultProguardFile (' proguard - android. TXT), 'proguard - rules. Pro'
}
}