Seek solutions
The Android studio official version 3.4.1 track, or can
Through the following steps:
1, modify build under the progect. Gradle,
Allprojects {
Repositories {
Google ()
Jcenter ()
}
}
Instead of
Allprojects {
Repositories {
Google ()
Jcenter ()
Gradle. ProjectsEvaluated {
The tasks. WithType (JavaCompile) {
Options.com pilerArgs. Add (' - Xbootclasspath/p: app \ \ libs \ \ framework jar ')
}
}
}
}
2, build under modify app. Gradle, will
Dependencies {
Implementation fileTree (include: [' *. Jar '], dir: 'libs')
}
Instead of
Dependencies {
CompileOnly files (' libs/framework. The jar)
}
3, this step is not necessary, not just for the sake of code red, modify the app, the app. On iml
Will & lt; OrderEntry type="JDK jdkName"="Android Platform API 19" jdkType="Android SDK/& gt;" Move to
But in the final Androidstudio3.5.3, when the above step fails, the compilation and packaging will be prompted to
"Error: can't find the symbols
Symbol: variable XXXXXXX
Location: class XXXX "
For each great god help
CodePudding user response:
Brothers, inquire of 3.5.3 ERROR after installing new project: Cause: unable to find valid certification path to requested target problem you have met?CodePudding user response:
Framework. The jar in the AS SDK, replace the corresponding package, under testCodePudding user response: