Home > Mobile >  Android studio official version 3.5.3, unable to use custom framework. The jar package
Android studio official version 3.5.3, unable to use custom framework. The jar package

Time:09-24

Android studio official version 3.5.3, use the framework provided by the equipment manufacturer. The jar package, unable to complete the compilation and packaging
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 test

CodePudding user response:

refer to the second floor fai _alexxm response:
framework. The jar in the AS SDK, replace the corresponding package, test under

Thanks a lot, tried this, no, custom equipment changes too much,

CodePudding user response:

references on the 1st floor code goes crazy response:
brother, inquire of 3.5.3 ERROR after installing new project: Cause: unable to find the valid certification path to the requested target problem you have met?

I haven't met, but it doesn't matter, should with version a few years ago a colleague had a computer, install the certificate is not solved, problem solving after reshipment JDK

CodePudding user response:

references 4 floor Bai Sheng clear reply:
Quote: reference on the 1st floor code goes crazy 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?

I haven't met, but it doesn't matter, should with version a few years ago a colleague had a computer, install the certificate is not solved, problem solving after reshipment JDK

Uh-huh, I finally took four days
  • Related