
I much prefer to work exclusively in C++/SDL than messing around with Java and Android. I have the little Alien Shooter game running on the emulator, and also a few of my own games at a very low frame-rate.Call to unimplemented OpenGL API




pelya wrote:Are you sure you've used Git, not the halfyear-old file releases?
pelya wrote:Do other games work for you?
Just how old is the one I'm using?

william@SATAN:~/Utilities/commandergenius$ android update project -p project/
Error: The project either has no target set or the target is invalid.
Please provide a --target to the 'android update' command.BUILD FAILED
/home/william/Utilities/commandergenius/project/build.xml:49: taskdef class com.android.ant.SetupTask cannot be found
using the classloader AntClassLoader[]

but the very end of build.sh still isn't happy. The native code compiles and everything works fine right up to the packaging of the finished product (aapt): [setup] Android SDK Tools Revision 12
[setup] Project Target: Android 2.1-update1
[setup] API level: 7
[setup]
[setup] ------------------
[setup] Resolving library dependencies:
[setup] No library dependencies.
[setup]
[setup] ------------------
[setup]
[setup] WARNING: Attribute minSdkVersion in AndroidManifest.xml (4) is lower than the project target API level (7)
[setup]
[setup] Importing rules file: tools/ant/main_rules.xml
-debug-obfuscation-check:
-set-debug-mode:
-compile-tested-if-test:
-pre-build:
-dirs:
[echo] Creating output directories if needed...
[mkdir] Created dir: /home/william/Utilities/commandergenius/project/bin
[mkdir] Created dir: /home/william/Utilities/commandergenius/project/gen
[mkdir] Created dir: /home/william/Utilities/commandergenius/project/bin/classes
-aidl:
[echo] Compiling aidl files into Java classes...
-renderscript:
[echo] Compiling RenderScript files into Java classes and RenderScript bytecode...
-resource-src:
[echo] Generating R.java / Manifest.java from the resources...
[aapt] /home/william/Utilities/commandergenius/project/AndroidManifest.xml:2: error: No resource identifier found for attribute 'installLocation' in package 'android'
[aapt] /home/william/Utilities/commandergenius/project/AndroidManifest.xml:12: error: Error: String types not allowed (at 'configChanges' with value 'mcc|mnc|locale|touchscreen|keyboard|keyboardHidden|navigation|orientation|screenLayout|fontScale|uiMode').
BUILD FAILED
/home/william/Utilities/android-sdk-linux_x86/tools/ant/main_rules.xml:310: null returned: 1

compile:
[javac] /home/william/Utilities/android-sdk-linux_x86/tools/ant/main_rules.xml:384: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds
[javac] Compiling 10 source files to /home/william/Utilities/commandergenius/project/bin/classes
[javac] /home/william/Utilities/commandergenius/project/src/MainActivity.java:394: method does not override or implement a method from a supertype
[javac] @Override
[javac] ^
[javac] /home/william/Utilities/commandergenius/project/src/Video.java:468: method does not override or implement a method from a supertype
[javac] @Override
[javac] ^
[javac] /home/william/Utilities/commandergenius/project/src/Video.java:222: cannot find symbol
[javac] symbol : variable ACTION_HOVER_MOVE
[javac] location: class android.view.MotionEvent
[javac] if( event.getAction() == MotionEvent.ACTION_HOVER_MOVE ) // Support bluetooth/USB mouse - available since Android 3.1
[javac] ^
[javac] 3 errors
BUILD FAILED
/home/william/Utilities/android-sdk-linux_x86/tools/ant/main_rules.xml:384: Compile failed; see the compiler error output for details.




Does it make sense to start a new "clean" build with the following command : "cd projet && ndk-build clean" ?
I would like to use the libandroid.so which is in the ndk folder.

Return to Code Snippets for Android
Users browsing this forum: No registered users and 6 guests