Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build issues with Android Studio #1

Open
sk92129 opened this issue May 17, 2022 · 0 comments
Open

build issues with Android Studio #1

sk92129 opened this issue May 17, 2022 · 0 comments

Comments

@sk92129
Copy link

sk92129 commented May 17, 2022

Upon initial project loading into Android Studio with JDK 11, it fails.
It uses gradle 4.1 which is incompatible with JDK 11 or newer.

After upgrading gradle from 4.1 to 4.8 there is still a build error : Unable to load class "javax.xml.bind.annotation.XmlSchema"

Attempting again shows:
Could not initialize class com.android.sdklib.repository.AndroidSdkHandler

After updating the SDK build tools 33-rc4, it still fails with same error.

I reverted from jdk 11 to jdk 1.8. Now I see the original error again:

cvc-complex-type.2.4.a: Invalid content was found starting with element 'base-extension'. One of '{layoutlib}' is expected.

With this error, it says to install android sdk platform 26. I installed the platform tools 26.0.3 but it then built partially but the AGP needed to be upgraded too. This caused more changes, including going back to jdk 11.

Perhaps this project needs to be refreshed with the latest Android tools?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant