Compiling for Android not creating APK after update to 12.312 -Solved

Previous topic - Next topic

UBERmonkeybot

Anyone else having this problem?

I seem to be getting a load of Java errors

compile:
    [javac] Compiling 17 source files to C:\Users\PC\Desktop\glbasic\stuff\GLBasic\my stuff\GLBasic\Jetpac\jetpac v2\distribute\Android\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] C:\Users\PC\Desktop\glbasic\stuff\GLBasic\my stuff\GLBasic\Jetpac\jetpac v2\distribute\Android\src\com\glbasic\test\GameControllers.java:40: error: mSingleton has private access in SDLActivity
    [javac]       if (SDLActivity.mSingleton.isOuya) playerID=OuyaController.getPlayerNumByDeviceId(playerID);
    [javac]                      ^
    [javac] C:\Users\PC\Desktop\glbasic\stuff\GLBasic\my stuff\GLBasic\Jetpac\jetpac v2\distribute\Android\src\com\glbasic\test\GameControllers.java:40: error: cannot find symbol
    [javac]       if (SDLActivity.mSingleton.isOuya) playerID=OuyaController.getPlayerNumByDeviceId(playerID);
    [javac]                                 ^
    [javac]   symbol:   variable isOuya
    [javac]   location: variable mSingleton of type SDLActivity
    [javac] C:\Users\PC\Desktop\glbasic\stuff\GLBasic\my stuff\GLBasic\Jetpac\jetpac v2\distribute\Android\src\com\glbasic\test\GameControllers.java:40: error: illegal start of type
    [javac]       if (SDLActivity.mSingleton.isOuya) playerID=OuyaController.getPlayerNumByDeviceId(playerID);
    [javac]          ^
    [javac] C:\Users\PC\Desktop\glbasic\stuff\GLBasic\my stuff\GLBasic\Jetpac\jetpac v2\distribute\Android\src\com\glbasic\test\Shop.java:375: error: cannot find symbol
    [javac]          base64EncodedPublicKey=SDLActivity.getStringResourceByName("com.google.play", "");
    [javac]                                            ^
    [javac]   symbol:   method getStringResourceByName(String,String)
    [javac]   location: class SDLActivity
    [javac] C:\Users\PC\Desktop\glbasic\stuff\GLBasic\my stuff\GLBasic\Jetpac\jetpac v2\distribute\Android\src\com\glbasic\test\Shop.java:380: error: cannot find symbol
    [javac]          SLIDEME=SDLActivity.getStringResourceByName("SlideME", "");
    [javac]                             ^
    [javac]   symbol:   method getStringResourceByName(String,String)
    [javac]   location: class SDLActivity
    [javac] C:\Users\PC\Desktop\glbasic\stuff\GLBasic\my stuff\GLBasic\Jetpac\jetpac v2\distribute\Android\src\com\glbasic\test\Shop.java:385: error: cannot find symbol
    [javac]          APPLAND_PUBLIC_KEY=SDLActivity.getStringResourceByName("Appland", "");
    [javac]                                        ^
    [javac]   symbol:   method getStringResourceByName(String,String)
    [javac]   location: class SDLActivity
    [javac] Note: Some input files use or override a deprecated API.
    [javac] Note: Recompile with -Xlint:deprecation for details.
    [javac] 6 errors
    [javac] 3 warnings

BUILD FAILED
Q:\Compiler\platform\android\android-sdk-windows\tools\ant\build.xml:720: The following error occurred while executing this line:
Q:\Compiler\platform\android\android-sdk-windows\tools\ant\build.xml:734: Compile failed; see the compiler error output for details.

Total time: 1 second
.
BUILD STAGE 4: Build a release build
   [subant] No sub-builds to iterate on
    [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] C:\Users\PC\Desktop\glbasic\stuff\GLBasic\my stuff\GLBasic\Jetpac\jetpac v2\distribute\Android\src\com\glbasic\test\GameControllers.java:40: error: mSingleton has private access in SDLActivity
    [javac]       if (SDLActivity.mSingleton.isOuya) playerID=OuyaController.getPlayerNumByDeviceId(playerID);
    [javac]                      ^
    [javac] C:\Users\PC\Desktop\glbasic\stuff\GLBasic\my stuff\GLBasic\Jetpac\jetpac v2\distribute\Android\src\com\glbasic\test\GameControllers.java:40: error: cannot find symbol
    [javac]       if (SDLActivity.mSingleton.isOuya) playerID=OuyaController.getPlayerNumByDeviceId(playerID);
    [javac]                                 ^
    [javac]   symbol:   variable isOuya
    [javac]   location: variable mSingleton of type SDLActivity
    [javac] C:\Users\PC\Desktop\glbasic\stuff\GLBasic\my stuff\GLBasic\Jetpac\jetpac v2\distribute\Android\src\com\glbasic\test\GameControllers.java:40: error: illegal start of type
    [javac]       if (SDLActivity.mSingleton.isOuya) playerID=OuyaController.getPlayerNumByDeviceId(playerID);
    [javac]          ^
    [javac] C:\Users\PC\Desktop\glbasic\stuff\GLBasic\my stuff\GLBasic\Jetpac\jetpac v2\distribute\Android\src\com\glbasic\test\Shop.java:375: error: cannot find symbol
    [javac]          base64EncodedPublicKey=SDLActivity.getStringResourceByName("com.google.play", "");
    [javac]                                            ^
    [javac]   symbol:   method getStringResourceByName(String,String)
    [javac]   location: class SDLActivity
    [javac] C:\Users\PC\Desktop\glbasic\stuff\GLBasic\my stuff\GLBasic\Jetpac\jetpac v2\distribute\Android\src\com\glbasic\test\Shop.java:380: error: cannot find symbol
    [javac]          SLIDEME=SDLActivity.getStringResourceByName("SlideME", "");
    [javac]                             ^
    [javac]   symbol:   method getStringResourceByName(String,String)
    [javac]   location: class SDLActivity
    [javac] C:\Users\PC\Desktop\glbasic\stuff\GLBasic\my stuff\GLBasic\Jetpac\jetpac v2\distribute\Android\src\com\glbasic\test\Shop.java:385: error: cannot find symbol
    [javac]          APPLAND_PUBLIC_KEY=SDLActivity.getStringResourceByName("Appland", "");
    [javac]                                        ^
    [javac]   symbol:   method getStringResourceByName(String,String)
    [javac]   location: class SDLActivity
    [javac] Note: Some input files use or override a deprecated API.
    [javac] Note: Recompile with -Xlint:deprecation for details.
    [javac] 6 errors
    [javac] 3 warnings

UBERmonkeybot

I just reinstalled SpaceFractal's Android Extras and all was well

spacefractal

look like the v12.312 update just have reinstaleld the old SDLActivity.Java, and then overrided Android Extras version.

Do also make sure in AndroidManifest.xml you have this line, to make sure to compile with the correct SdkVersion, if you using the newest version (see the sticky new thread about it):

<uses-sdk android:minSdkVersion="10" android:targetSdkVersion="22" />




Genius.Greedy Mouse - Karma Miwa - Spot Race - CatchOut - PowerUp Elevation - The beagle Jam - Cave Heroes 2023 - https://spacefractal.itch.io/