[TIMOB-25457] Hyperloop: Android - Failed to generated metabase: Error: A JNI error has occurred, please check your installation and try again
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Critical |
Status | Closed |
Resolution | Duplicate |
Resolution Date | 2017-11-03T13:17:11.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Hyperloop 2.2.2 |
Components | Hyperloop |
Labels | n/a |
Reporter | Mark Henderson |
Assignee | Jan Vennemann |
Created | 2017-10-30T03:47:22.000+0000 |
Updated | 2017-11-03T13:17:11.000+0000 |
Description
If I use Hyperloop v2.1.3 this will build, but any of the latest Hyperloop examples won't build as I get this error:
[INFO] [Hyperloop] Generating system metabase
[ERROR] hyperloop:generateMetabase: Failed to generated metabase: Error: A JNI error has occurred, please check your installation and try again
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/bcel/classfile/AccessFlags
at java.lang.Class.getDeclaredMethods0(Native Method)
at java.lang.Class.privateGetDeclaredMethods(Class.java:2701)
at java.lang.Class.privateGetMethodRecursive(Class.java:3048)
at java.lang.Class.getMethod0(Class.java:3018)
at java.lang.Class.getMethod(Class.java:1784)
at sun.launcher.LauncherHelper.validateMainClass(LauncherHelper.java:544)
at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:526)
Caused by: java.lang.ClassNotFoundException: org.apache.bcel.classfile.AccessFlags
at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
... 7 more
Please see attached example project just with the required Intercom .aars in /platform/android nothing else has been changed from the single page template.
Attachments
File | Date | Size |
---|---|---|
AndroidSimpleBuildTest.zip | 2017-10-30T03:45:46.000+0000 | 728435 |
I can confirm that I needed to manually move files to the directory. I tried to re-download 2.2.1 but it didn't work. Manually moving things as per your messages in Slack did the trick.
Closed as duplicate of TIMOB-25451. Issue is resolved in Hyperloop 2.2.2.