Home > Mobile >  Package android. Support. V7. App does not exist
Package android. Support. V7. App does not exist

Time:09-25

In my Android Studio for help: each master import "Android Studio practice basis from zero to APP launch the second edition" of the source code, if the import in project way, it contains all of the modules can compile and run normally, but if a new empty project, again to import module way in which a directory (for example, when Junior directory), is a "package Android. Support. V7. APP does not exist" tips to run:

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 migration

CodePudding 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. Gradle

CodePudding user response:

The library under the project of the build. Gradle - & gt; BuildTypes {.. } - & gt; MinifyEnabled attribute set to false

BuildTypes {
Release {
MinifyEnabled false
ProguardFiles getDefaultProguardFile (' proguard - android. TXT), 'proguard - rules. Pro'
}
}
  • Related