Ok. I am on 0194 too...
And this sketch way of accessing acceleromter was taken from a blog post by ak_erik, way before the most recent example. Not sure which way is better now, but I'm used to this one. But that's not the problem - I was trying to send the accell values back to my desktop sketch, so I can control 3D rotation that way...
I admit to being confused if we are still supposed to type the import statements for libraries, as it doesn't seem to make a difference anymore. I use Sketch > Add File to add the Jar directly to the code folder.
But again, I can make the ketai examples and some modified toxilibs examples work this way now, but not oscp5. Even if I comment out/delete ALL the osc declarations and calls, it will build and install, but then crashes if the Jar's are in the code folder. If I delete them, it will run just the basic accelerometer sketch. This is the console output when it crashes:
No library found for android.content
No library found for android.hardware
No library found for android.hardware
No library found for android.hardware
No library found for android.hardware
Android SDK Tools Revision 10
Project Target: Android 2.1-update1
API level: 7
------------------
Resolving library dependencies:
No library dependencies.
------------------
Importing rules file: tools/ant/main_rules.xml
BUILD FAILED
/Users/jessescott/Documents/Processing/Android SDK/android-sdk-mac_x86/tools/ant/main_rules.xml:472: The following error occurred while executing this line:
/Users/jessescott/Documents/Processing/Android SDK/android-sdk-mac_x86/tools/ant/main_rules.xml:203: apply returned: 1
Total time: 7 seconds
Problem during build:
/Users/jessescott/Documents/Processing/Android SDK/android-sdk-mac_x86/tools/ant/main_rules.xml:472: The following error occurred while executing this line:
/Users/jessescott/Documents/Processing/Android SDK/android-sdk-mac_x86/tools/ant/main_rules.xml:203: apply returned: 1
at org.apache.tools.ant.ProjectHelper.addLocationToBuildException(ProjectHelper.java:497)
at org.apache.tools.ant.taskdefs.MacroInstance.execute(MacroInstance.java:401)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
at sun.reflect.GeneratedMethodAccessor23.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:68)
at com.android.ant.IfElseTask.execute(IfElseTask.java:120)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
at sun.reflect.GeneratedMethodAccessor23.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:390)
at org.apache.tools.ant.Target.performTasks(Target.java:411)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1397)
at org.apache.tools.ant.Project.executeTarget(Project.java:1366)
at processing.mode.android.AndroidBuild.antBuild(AndroidBuild.java:290)
at processing.mode.android.AndroidBuild.build(AndroidBuild.java:74)
at processing.mode.android.AndroidMode.handleRunDevice(AndroidMode.java:168)
at processing.mode.android.AndroidEditor$13.run(AndroidEditor.java:349)
Caused by: /Users/jessescott/Documents/Processing/Android SDK/android-sdk-mac_x86/tools/ant/main_rules.xml:203: apply returned: 1
at org.apache.tools.ant.taskdefs.ExecTask.runExecute(ExecTask.java:650)
at org.apache.tools.ant.taskdefs.ExecuteOn.runParallel(ExecuteOn.java:711)
at org.apache.tools.ant.taskdefs.ExecuteOn.runExec(ExecuteOn.java:479)
at org.apache.tools.ant.taskdefs.ExecTask.execute(ExecTask.java:502)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
at sun.reflect.GeneratedMethodAccessor23.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:68)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
at sun.reflect.GeneratedMethodAccessor23.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.taskdefs.MacroInstance.execute(MacroInstance.java:398)
... 22 more
adb -s HT04EP900196 install -r /var/folders/cs/csUuSD20FJ8BHJH4lPTttE+++TI/-Tmp-/android2872586469561657770.pde/bin/androidAccelerometer_OSC-debug.apk
status: 1
63ms
stdout:
stderr:
... ideas ??