defold / extender

Native extension build server
https://defold.com/manuals/extensions/
MIT License
44 stars 19 forks source link

Manifest merge errror: java.lang.NoClassDefFoundError: com/android/sdklib/SdkVersionInfo #418

Closed ekharkunov closed 2 months ago

ekharkunov commented 2 months ago

I Extender's logs I found following error:

Exception in thread "main" java.lang.NoClassDefFoundError: com/android/sdklib/SdkVersionInfo 
    at com.android.manifmerger.XmlDocument.getApiLevelFromAttribute(XmlDocument.java:545) 
    at com.android.manifmerger.XmlDocument.getExplicitVersionAttribute(XmlDocument.java:404) 
    at com.android.manifmerger.XmlDocument.getExplicitTargetSdkVersion(XmlDocument.java:363) 
    at com.android.manifmerger.XmlDocument.getRawTargetSdkVersion(XmlDocument.java:424) 
    at com.android.manifmerger.XmlDocument.getImplicitElementsToAdd(XmlDocument.java:596) 
    at com.android.manifmerger.XmlDocument.merge(XmlDocument.java:203) 
    at com.android.manifmerger.ManifestMerger2.merge(ManifestMerger2.java:1178) 
    at com.android.manifmerger.ManifestMerger2.merge(ManifestMerger2.java:377) 
    at com.android.manifmerger.ManifestMerger2$Invoker.merge(ManifestMerger2.java:2148) 
    at com.defold.manifestmergetool.AndroidManifestMerger.merge(AndroidManifestMerger.java:58) 
    at com.defold.manifestmergetool.ManifestMergeTool.mergeAndroid(ManifestMergeTool.java:36) 
    at com.defold.manifestmergetool.ManifestMergeTool.merge(ManifestMergeTool.java:84) 
    at com.defold.manifestmergetool.ManifestMergeTool.main(ManifestMergeTool.java:136) 
Caused by: java.lang.ClassNotFoundException: com.android.sdklib.SdkVersionInfo 
    at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:641) 
    at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:188) 
    at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:520) 

Some information related to that error: https://git.gugelfrei.de/gugelfrei/android_build/commit/0084dc8e2f9840ea0f80015072f4da3d64e83e5d

ekharkunov commented 2 months ago

After some investigation found following things:

So closing for now as no action needed. Pay attention in future updates if any changes will be made in terms of how sdk version handled.