If you create a new project, hello world appears in preview If you install a new one on your laptop and go into the layout file, you'll get a message like attribute android: is not allowed If you say sync project with gradient files,
Cannot find JAR 'jaxb-impl-2.3.1.jar' required by module 'gradle-resources-s3' using classpath or distribution directory 'C:\Users\SAMSUNG.gradle\wrapper\dists\gradle-5.1.1-all\97z1ksx6lirer3kbvdnh7jtjg\gradle-5.1.1'
That's the message. I've set all the JDK environment variables, is there a solution?
android-studio
When you ask a question, you should specify the environment (jdk, version of the gradient, etc.).
There is no jaxb from jdk 9.
If you need to use jdk 9 or later, you should use options such as --add-modules java.xml.bind when booting jvm.
Starting from jdk 9, a module system called jigsaw is implemented, so it needs to be added using the above options.
But I don't think Android builds would have used jdk 9 or higher.
Please install jdk 8 and use it to run Android build, or gradle.
If you don't understand this, please delete all of the jdk and install only the jdk 8 version.8 version.
© 2024 OneMinuteCode. All rights reserved.