From: John C. <jc...@un...> - 2011-04-07 05:52:25
|
I was finally able to get afireworks to run on Android, by making a completely new project, copying the sources, resources, and AndroidManifest.xml to the new project directory, and rebuilding: 10398 bzr mv afireworks afireworks.demo 10399 make afireworks.project 10402 cp -a afireworks.demo/src/org afireworks/src 10406 find afireworks/src/ -name .svn -exec rm -rf "{}" \; 10409 rm -rf afireworks/src/com/ 10428 mkdir afireworks/res/drawable 10430 cp afireworks.demo/res/drawable/* afireworks/res/drawable/ 10432 cp afireworks.demo/res/layout/main.xml afireworks/res/layout/ 10433 cp afireworks.demo/res/values/strings.xml afireworks/res/values/ 10440 cp afireworks.demo/AndroidManifest.xml afireworks/ 10441 make afireworks.build (relevant parts of my history file). But then I migrated the project and attempted to run on the iPhone emulator: jcomeau@intrepid:~/rentacoder/marchie$ make afireworks.migrate make[1]: Entering directory `/home/jcomeau/rentacoder/marchie' java -jar /usr/src/xmlvm/trunk/xmlvm/dist/xmlvm.jar --skeleton=android:migrate --out=afireworks [04/06/11 22:37:51.810] WARNING: Using afireworks as application name [04/06/11 22:37:51.829] WARNING: InputProcess.getOutputFiles(): Input File does not exist or is not a file. [04/06/11 22:37:51.862] WARNING: Renaming afireworks//build.xml to afireworks//build.xml.back [04/06/11 22:37:51.876] WARNING: Currently the Android plugin for Netbeans does not support local.properties file and has a bug which prevents the usage of GUI platform customization. It is required to MANUALLY set your platfom under "nbproject/project.properties" by editing property "platform.active" or else Netbeans might crash. make[1]: Leaving directory `/home/jcomeau/rentacoder/marchie' jcomeau@intrepid:~/rentacoder/marchie$ make afireworks.runjava make[1]: Entering directory `/home/jcomeau/rentacoder/marchie' cd afireworks && ant run-Java Buildfile: /home/jcomeau/rentacoder/marchie/afireworks/build.xml [snipped some of output -- jc] -trigger-java-simulator-task: [java] <I> <Resources>: Unable to resolve resources for org.xmlvm.demo.afireworks: id [java] <I> <Resources>: Unable to resolve resources for org.xmlvm.demo.afireworks: array [java] <I> <Resources>: Unable to resolve resources for org.xmlvm.demo.afireworks: dimen [java] <I> <Resources>: Unable to resolve resources for org.xmlvm.demo.afireworks: raw [java] <I> <Resources>: Unable to resolve resources for org.xmlvm.demo.afireworks: id [java] <I> <Resources>: Unable to resolve resources for org.xmlvm.demo.afireworks: array [java] <I> <Resources>: Unable to resolve resources for org.xmlvm.demo.afireworks: dimen [java] <I> <Resources>: Unable to resolve resources for org.xmlvm.demo.afireworks: raw [java] Exception in thread "AWT-EventQueue-0" java.lang.RuntimeException: java.lang.reflect.InvocationTargetException [java] at org.xmlvm.iphone.NSObject$1.run(NSObject.java:83) [java] at org.xmlvm.iphone.NSObject.performSelector(NSObject.java:90) [java] at org.xmlvm.iphone.NSObject.performSelectorOnMainThread(NSObject.java:40) [java] at android.app.Activity.xmlvmCreate(Activity.java:105) [java] at android.content.Context.startActivityForResult(Context.java:256) [java] at android.content.Context.startActivity(Context.java:260) [java] at android.app.Application.onCreate(Application.java:46) [java] at android.internal.AndroidAppLauncher.applicationDidFinishLaunching(AndroidAppLauncher.java:36) [java] at org.xmlvm.iphone.UIApplication$1.run(UIApplication.java:142) [java] at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209) [java] at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:642) [java] at java.awt.EventQueue.access$000(EventQueue.java:85) [java] at java.awt.EventQueue$1.run(EventQueue.java:603) [java] at java.awt.EventQueue$1.run(EventQueue.java:601) [java] at java.security.AccessController.doPrivileged(Native Method) [java] at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87) [java] at java.awt.EventQueue.dispatchEvent(EventQueue.java:612) [java] at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269) [java] at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184) [java] at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174) [java] at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169) [java] at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161) [java] at java.awt.EventDispatchThread.run(EventDispatchThread.java:122) [java] Caused by: java.lang.reflect.InvocationTargetException [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [java] at java.lang.reflect.Method.invoke(Method.java:597) [java] at org.xmlvm.iphone.NSObject$1.run(NSObject.java:77) [java] ... 22 more [java] Caused by: java.lang.IncompatibleClassChangeError: Found class android.view.WindowManager, but interface was expected [java] at org.xmlvm.demo.afireworks.AndroidFireworks.onContentChanged(AndroidFireworks.java:73) [java] at android.app.Activity.create(Activity.java:130) [java] ... 27 more On Wed, Apr 6, 2011 at 6:13 PM, John Comeau <jc...@un...> wrote: > OAuth is for other projects for this same client, I'm not using it for > afireworks. Changed minSdkVersion to 10 as requested, but still fails > on Android emulator. > > On Wed, Apr 6, 2011 at 6:06 PM, Sascha Haeberling <sa...@xm...> wrote: >> Thanks John, from what i can see this looks good. But you adding other JARs >> to the project, like the OAuth library? It could be that something you use >> is not supported by the API. >> To check this, can you increase the mindSdkVersion in the manifest file to >> "10" please? This number represents Android 2.3.3, so it will match your >> emulator version. >> // Sascha > -- > John Comeau <jc...@un...> http://jc.unternet.net/ > "A place for everything, and everything > all over the place" > -- John Comeau <jc...@un...> http://jc.unternet.net/ "A place for everything, and everything all over the place" |