You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
The text was updated successfully, but these errors were encountered:
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?
The text was updated successfully, but these errors were encountered: