User Tag List

Results 1 to 3 of 3

Thread: Help! ERROR LOG (Android SDK/ JAVA JDK)

  1. #1
    No Products Registered

    Join Date
    Jul 2016
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Exclamation Help! ERROR LOG (Android SDK/ JAVA JDK)

    So I followed Sparckman's Android SDK tutorial to the T but I keep getting error logs left and right (I most likely missed something). I've been stuck on this for almost three weeks so any help would be great.
    I have all the android build tools as well as API 23, 22, 21, 20, 19, 18 and Java JDK 32bit and 64... This is all pretty alien to me.

    The only difference I noticed I missed is when Sparkman is looking for the keytool he opens (jdk1.7.0_75 to bin to keytool) but I only have JDK1.8.0_102 (whatever that means).




    ERROR LOG:

    Buildfile: C:\Users\X\AppData\Local\Temp\And8FA5.tmp\build.xm l

    -set-mode-check:

    -set-release-mode:

    -release-obfuscation-check:
    [echo] proguard.config is ${proguard.config}

    -pre-build:

    -check-env:
    [checkenv] Android SDK Tools Revision 25.1.7
    [checkenv] Installed at C:\Users\X\AppData\Local\Android\android-sdk

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

    -build-setup:
    [getbuildtools] Using latest Build Tools: 24.0.1
    [echo] Resolving Build Target for RuntimeAndroid...
    [gettarget] Project Target: Android 4.4W.2
    [gettarget] API level: 20
    [echo] ----------
    [echo] Creating output directories if needed...
    [mkdir] Created dir: C:\Users\X\AppData\Local\Temp\And8FA5.tmp\bin
    [mkdir] Created dir: C:\Users\X\AppData\Local\Temp\And8FA5.tmp\bin\res
    [mkdir] Created dir: C:\Users\X\AppData\Local\Temp\And8FA5.tmp\bin\rsOb j
    [mkdir] Created dir: C:\Users\X\AppData\Local\Temp\And8FA5.tmp\bin\rsLi bs
    [mkdir] Created dir: C:\Users\X\AppData\Local\Temp\And8FA5.tmp\gen
    [mkdir] Created dir: C:\Users\X\AppData\Local\Temp\And8FA5.tmp\bin\clas ses
    [mkdir] Created dir: C:\Users\X\AppData\Local\Temp\And8FA5.tmp\bin\dexe dLibs
    [echo] ----------
    [echo] Resolving Dependencies for RuntimeAndroid...
    [dependency] Library dependencies:
    [dependency] No Libraries
    [dependency]
    [dependency] ------------------
    [echo] ----------
    [echo] Building Libraries with 'release'...
    [subant] No sub-builds to iterate on

    -code-gen:
    [mergemanifest] Merging AndroidManifest files into one.
    [mergemanifest] Manifest merger disabled. Using project manifest only.
    [echo] Handling aidl files...
    [aidl] No AIDL files to compile.
    [echo] ----------
    [echo] Handling RenderScript files...
    [echo] ----------
    [echo] Handling Resources...
    [aapt] Generating resource IDs...
    [echo] ----------
    [echo] Handling BuildConfig class...
    [buildconfig] Generating BuildConfig class.

    -pre-compile:

    -compile:
    [javac] Compiling 387 source files to C:\Users\THEKET~1\AppData\Local\Temp\And8FA5.tmp\b in\classes
    [javac] C:\Users\X\AppData\Local\Temp\And8FA5.tmp\src\Runt ime\MMFRuntime.java:1645: warning: non-varargs call of varargs method with inexact argument type for last parameter;
    [javac] Method m = c.getDeclaredMethod("disconnect", null);
    [javac] ^
    [javac] cast to Class<?> for a varargs call
    [javac] cast to Class<?>[] for a non-varargs call and to suppress this warning
    [javac] C:\Users\X\AppData\Local\Temp\And8FA5.tmp\src\Runt ime\MMFRuntime.java:1646: warning: non-varargs call of varargs method with inexact argument type for last parameter;
    [javac] Object o = m.invoke(null, null);
    [javac] ^
    [javac] cast to Object for a varargs call
    [javac] cast to Object[] for a non-varargs call and to suppress this warning
    [javac] C:\Users\X\AppData\Local\Temp\And8FA5.tmp\src\Runt ime\MMFRuntime.java:1660: warning: non-varargs call of varargs method with inexact argument type for last parameter;
    [javac] Method m = c.getDeclaredMethod("connect", null);
    [javac] ^
    [javac] cast to Class<?> for a varargs call
    [javac] cast to Class<?>[] for a non-varargs call and to suppress this warning
    [javac] C:\Users\X\AppData\Local\Temp\And8FA5.tmp\src\Runt ime\MMFRuntime.java:1661: warning: non-varargs call of varargs method with inexact argument type for last parameter;
    [javac] Object o = m.invoke(null, null);
    [javac] ^
    [javac] cast to Object for a varargs call
    [javac] cast to Object[] for a non-varargs call and to suppress this warning
    [javac] C:\Users\X\AppData\Local\Temp\And8FA5.tmp\src\Runt ime\MMFRuntime.java:1675: warning: non-varargs call of varargs method with inexact argument type for last parameter;
    [javac] Method m = c.getDeclaredMethod("isConnected", null);
    [javac] ^
    [javac] cast to Class<?> for a varargs call
    [javac] cast to Class<?>[] for a non-varargs call and to suppress this warning
    [javac] C:\Users\X\AppData\Local\Temp\And8FA5.tmp\src\Runt ime\MMFRuntime.java:1676: warning: non-varargs call of varargs method with inexact argument type for last parameter;
    [javac] Object o = m.invoke(null, null);
    [javac] ^
    [javac] cast to Object for a varargs call
    [javac] cast to Object[] for a non-varargs call and to suppress this warning
    [javac] Note: Some input files use or override a deprecated API.
    [javac] Note: Recompile with -Xlint:deprecation for details.
    [javac] Note: Some input files use unchecked or unsafe operations.
    [javac] Note: Recompile with -Xlint:unchecked for details.
    [javac] 6 warnings

    -post-compile:

    -obfuscate:

    -dex:
    [dex] input: C:\Users\X\AppData\Local\Temp\And8FA5.tmp\bin\clas ses
    [dex] input: C:\Users\XAppData\Local\Temp\And8FA5.tmp\libs\ouya-sdk.jar
    [dex] input: C:\Users\X\AppData\Local\Temp\And8FA5.tmp\libs\lib rary.jar
    [dex] input: C:\Users\X\AppData\Local\Temp\And8FA5.tmp\libs\not ification.jar
    [dex] input: C:\Users\X\AppData\Local\Temp\And8FA5.tmp\libs\and roid-support-v4.jar
    [dex] input: C:\Users\X\AppData\Local\Temp\And8FA5.tmp\libs\zip _file.jar
    [dex] input: C:\Users\X\AppData\Local\Temp\And8FA5.tmp\libs\gam econtroller.jar
    [dex] input: C:\Users\X\AppData\Local\Temp\And8FA5.tmp\libs\dow nloader_library.jar
    [dex] Pre-Dexing C:\Users\X\AppData\Local\Temp\And8FA5.tmp\libs\ouy a-sdk.jar -> ouya-sdk-99496df36d7a22c9c573c3e2b5982d47.jar
    [dx] java.lang.UnsupportedClassVersionError: com/android/dx/command/Main : Unsupported major.minor version 52.0
    [dx] at java.lang.ClassLoader.defineClass1(Native Method)
    [dx] at java.lang.ClassLoader.defineClass(ClassLoader.java :800)
    [dx] at java.security.SecureClassLoader.defineClass(Secure ClassLoader.java:142)
    [dx] at java.net.URLClassLoader.defineClass(URLClassLoader .java:449)
    [dx] at java.net.URLClassLoader.access$100(URLClassLoader. java:71)
    [dx] at java.net.URLClassLoader$1.run(URLClassLoader.java: 361)
    [dx] at java.net.URLClassLoader$1.run(URLClassLoader.java: 355)
    [dx] at java.security.AccessController.doPrivileged(Native Method)
    [dx] at java.net.URLClassLoader.findClass(URLClassLoader.j ava:354)
    [dx] at java.lang.ClassLoader.loadClass(ClassLoader.java:4 25)
    [dx] at java.lang.ClassLoader.loadClass(ClassLoader.java:4 12)
    [dx] at sun.misc.Launcher$AppClassLoader.loadClass(Launche r.java:308)
    [dx] at java.lang.ClassLoader.loadClass(ClassLoader.java:3 58)
    [dx] at sun.launcher.LauncherHelper.checkAndLoadMain(Launc herHelper.java:482)
    [dx] Exception in thread "main"

    BUILD FAILED
    C:\Usersc\X\AppData\Local\Android\android-sdk\tools\ant\build.xml:888: The following error occurred while executing this line:
    C:\Users\X\AppData\Local\Android\android-sdk\tools\ant\build.xml:890: The following error occurred while executing this line:
    C:\Users\X\AppData\Local\Android\android-sdk\tools\ant\build.xml:902: The following error occurred while executing this line:
    C:\Users\X\AppData\Local\Android\android-sdk\tools\ant\build.xml:283: null returned: 1

  2. #2
    Clickteam Clickteam
    Fernando's Avatar
    Join Date
    Dec 2006
    Posts
    6,083
    Mentioned
    138 Post(s)
    Tagged
    3 Thread(s)
    To use builds tools 24 and above you need Java SDK 8
    Regards,


    Fernando Vivolo

    ... new things are coming ...

  3. #3
    No Products Registered

    Join Date
    Jul 2016
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks Fernando that got everything up n' running.

Similar Threads

  1. SETUP Android SDK/ JAVA JDK - How to export to android - Tutorial
    By Sparckman in forum Android Export Module 2.5
    Replies: 46
    Last Post: 1st September 2019, 02:39 PM
  2. Replies: 56
    Last Post: 26th December 2017, 08:53 PM
  3. Replies: 14
    Last Post: 28th September 2015, 03:12 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •