Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-25457] Hyperloop: Android - Failed to generated metabase: Error: A JNI error has occurred, please check your installation and try again

GitHub Issuen/a
TypeBug
PriorityCritical
StatusClosed
ResolutionDuplicate
Resolution Date2017-11-03T13:17:11.000+0000
Affected Version/sn/a
Fix Version/sHyperloop 2.2.2
ComponentsHyperloop
Labelsn/a
ReporterMark Henderson
AssigneeJan Vennemann
Created2017-10-30T03:47:22.000+0000
Updated2017-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

FileDateSize
AndroidSimpleBuildTest.zip2017-10-30T03:45:46.000+0000728435

Comments

  1. Hans Knöchel 2017-10-30

  2. Mark Henderson 2017-10-30

    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.
  3. Jan Vennemann 2017-11-03

    Closed as duplicate of TIMOB-25451. Issue is resolved in Hyperloop 2.2.2.

JSON Source