You are not logged in.

#1 2016-05-03 01:55:35

SolskGaer
Member
Registered: 2016-05-03
Posts: 1

Can't build Kawa for android

Hey, guys! I tried to use kawa on my android phone. So I followed this tutorial Building for Android. Everything worked well until I reached the last step ant debug. One error was detected and the following is the output:

Buildfile: /home/solskgaer/KawaHello/build.xml

-set-mode-check:

-set-debug-files:

-check-env:
 [checkenv] Android SDK Tools Revision 25.1.3
 [checkenv] Installed at /home/solskgaer/android/sdk/android-sdk-linux

-setup:
     [echo] Project Name: KawaHello
  [gettype] Project Type: Application

-set-debug-mode:

-debug-obfuscation-check:

-pre-build:

-build-setup:
[getbuildtools] Using latest Build Tools: 23.0.3
     [echo] Resolving Build Target for KawaHello...
[gettarget] Project Target:   Android 4.4.2
[gettarget] API level:        19
[gettarget] WARNING: No minSdkVersion value set. Application will install on all Android versions.
     [echo] ----------
     [echo] Creating output directories if needed...
    [mkdir] Created dir: /home/solskgaer/KawaHello/bin/rsObj
    [mkdir] Created dir: /home/solskgaer/KawaHello/bin/rsLibs
     [echo] ----------
     [echo] Resolving Dependencies for KawaHello...
[dependency] Library dependencies:
[dependency] No Libraries
[dependency] 
[dependency] ------------------
     [echo] ----------
     [echo] Building Libraries with 'debug'...
   [subant] No sub-builds to iterate on

-code-gen:
[mergemanifest] No changes in the AndroidManifest files.
     [echo] Handling aidl files...
     [aidl] No AIDL files to compile.
     [echo] ----------
     [echo] Handling RenderScript files...
     [echo] ----------
     [echo] Handling Resources...
     [aapt] No changed resources. R.java and Manifest.java untouched.
     [echo] ----------
     [echo] Handling BuildConfig class...
[buildconfig] Generating BuildConfig class.

-pre-compile:

-compile:
    [javac] Compiling 1 source file to /home/solskgaer/KawaHello/bin/classes
    [javac] warning: [options] source value 1.5 is obsolete and will be removed in a future release
    [javac] warning: [options] target value 1.5 is obsolete and will be removed in a future release
    [javac] warning: [options] To suppress warnings about obsolete options, use -Xlint:-options.
    [javac] 3 warnings

-post-compile:

-obfuscate:

-dex:
      [dex] input: /home/solskgaer/KawaHello/bin/classes
      [dex] input: /home/solskgaer/KawaHello/libs/kawa.jar
      [dex] Pre-Dexing /home/solskgaer/KawaHello/libs/kawa.jar -> kawa-de96ed0566634748a1c20b3f7e1c9e7f.jar
       [dx] 
       [dx] UNEXPECTED TOP-LEVEL EXCEPTION:
       [dx] java.lang.RuntimeException: Exception parsing classes
       [dx] 	at com.android.dx.command.dexer.Main.processClass(Main.java:752)
       [dx] 	at com.android.dx.command.dexer.Main.processFileBytes(Main.java:718)
       [dx] 	at com.android.dx.command.dexer.Main.access$1200(Main.java:85)
       [dx] 	at com.android.dx.command.dexer.Main$FileBytesConsumer.processFileBytes(Main.java:1645)
       [dx] 	at com.android.dx.cf.direct.ClassPathOpener.processArchive(ClassPathOpener.java:284)
       [dx] 	at com.android.dx.cf.direct.ClassPathOpener.processOne(ClassPathOpener.java:166)
       [dx] 	at com.android.dx.cf.direct.ClassPathOpener.process(ClassPathOpener.java:144)
       [dx] 	at com.android.dx.command.dexer.Main.processOne(Main.java:672)
       [dx] 	at com.android.dx.command.dexer.Main.processAllFiles(Main.java:574)
       [dx] 	at com.android.dx.command.dexer.Main.runMonoDex(Main.java:311)
       [dx] 	at com.android.dx.command.dexer.Main.run(Main.java:277)
       [dx] 	at com.android.dx.command.dexer.Main.main(Main.java:245)
       [dx] 	at com.android.dx.command.Main.main(Main.java:106)
       [dx] Caused by: com.android.dx.cf.iface.ParseException: bad class file magic (cafebabe) or version (0034.0000)
       [dx] 	at com.android.dx.cf.direct.DirectClassFile.parse0(DirectClassFile.java:472)
       [dx] 	at com.android.dx.cf.direct.DirectClassFile.parse(DirectClassFile.java:406)
       [dx] 	at com.android.dx.cf.direct.DirectClassFile.parseToInterfacesIfNecessary(DirectClassFile.java:388)
       [dx] 	at com.android.dx.cf.direct.DirectClassFile.getMagic(DirectClassFile.java:251)
       [dx] 	at com.android.dx.command.dexer.Main.parseClass(Main.java:764)
       [dx] 	at com.android.dx.command.dexer.Main.access$1500(Main.java:85)
       [dx] 	at com.android.dx.command.dexer.Main$ClassParserTask.call(Main.java:1684)
       [dx] 	at com.android.dx.command.dexer.Main.processClass(Main.java:749)
       [dx] 	... 12 more
       [dx] 1 error; aborting

BUILD FAILED
/home/solskgaer/android/sdk/android-sdk-linux/tools/ant/build.xml:888: The following error occurred while executing this line:
/home/solskgaer/android/sdk/android-sdk-linux/tools/ant/build.xml:890: The following error occurred while executing this line:
/home/solskgaer/android/sdk/android-sdk-linux/tools/ant/build.xml:902: The following error occurred while executing this line:
/home/solskgaer/android/sdk/android-sdk-linux/tools/ant/build.xml:283: null returned: 1

Total time: 1 second

Can anyone help me fix this? Any response will be appreciated.

Last edited by SolskGaer (2016-05-03 01:57:15)

Offline

#2 2016-06-19 12:59:42

matthew_TKA
Member
From: Texas
Registered: 2016-06-02
Posts: 34
Website

Re: Can't build Kawa for android

It has been a while since I have done much Android development.  Have you already looked here?

Last edited by matthew_TKA (2016-06-19 13:00:09)


MSI GS40 6QE PHANTOM
Website

Offline

Board footer

Powered by FluxBB