Java '-Xbootclasspath' not working on M1 mac

Viewed 23

I have a problem setting up Android project on M1 Mac, please help. No problem on Intel Mac. I think there is a problem with the gradle configuration. 'cannot find symbol' occurs because the external library frameworks.jar is not referenced first.

Code:

 gradle.projectsEvaluated {
     tasks.withType(JavaCompile) {
         options.compilerArgs.add('-Xbootclasspath/p:app/extlib/frameworks.jar')
     }
 }

gradle version is 4.1.2.

0 Answers
Related