Android Question Creating Library - Unexpected Top-Level Exception

Anirban Sen

Member
Licensed User
I was trying to follow Youtube tutorial on B4A library creation.

I think I followed the instructions properly but I am getting unexpected top-level exception. Screen shots are attached for reference.

Kindly help in pointing out on what I am doing wrong.
 

Attachments

  • B4AScreen1.JPG
    B4AScreen1.JPG
    112.2 KB · Views: 217
  • Eclipse.JPG
    Eclipse.JPG
    59.6 KB · Views: 170

Anirban Sen

Member
Licensed User
B4A version: 6.00
Parsing code. (0.00s)
Compiling code. (0.05s)
Compiling layouts code. (0.00s)
Organizing libraries. (0.00s)
Generating R file. (0.28s)
Compiling debugger engine code. (0.57s)
Compiling generated Java code. (0.84s)
Convert byte code - optimized dex. Error
UNEXPECTED TOP-LEVEL EXCEPTION:
com.android.dx.cf.iface.ParseException: bad class file magic (cafebabe) or version (0034.0000)
at com.android.dx.cf.direct.DirectClassFile.parse0(DirectClassFile.java:472)
at com.android.dx.cf.direct.DirectClassFile.parse(DirectClassFile.java:406)
at com.android.dx.cf.direct.DirectClassFile.parseToInterfacesIfNecessary(DirectClassFile.java:388)
at com.android.dx.cf.direct.DirectClassFile.getMagic(DirectClassFile.java:251)
at com.android.dx.command.dexer.Main.processClass(Main.java:598)
at com.android.dx.command.dexer.Main.processFileBytes(Main.java:570)
at com.android.dx.command.dexer.Main.access$2(Main.java:546)
at com.android.dx.command.dexer.Main$2.processFileBytes(Main.java:514)
at com.android.dx.cf.direct.ClassPathOpener.processArchive(ClassPathOpener.java:284)
at com.android.dx.cf.direct.ClassPathOpener.processOne(ClassPathOpener.java:166)
at com.android.dx.cf.direct.ClassPathOpener.process(ClassPathOpener.java:144)
at com.android.dx.command.dexer.Main.processOne(Main.java:537)
at com.android.dx.command.dexer.Main.processAllFiles(Main.java:449)
at com.android.dx.command.dexer.Main.runMonoDex(Main.java:236)
at com.android.dx.command.dexer.Main.run(Main.java:206)
at com.android.dx.command.dexer.Main.main(Main.java:179)
at com.android.dx.command.Main.main(Main.java:103)
...while parsing anywheresoftware/b4a/Trial/FirstLib.class
1 error; aborting
 
Upvote 0
Top