We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Like a few other users, I am struggling to get working with 3.0b6 AndroidMode. I have everything installed as far as I can tell using the embedded sdk downloader etc., and I can do an export of my sketch which loads fine into AIDE on my phone where I can then create an apk.
But, I used to be able to 'run on device' with Processing up until having to get a new PC this and re-install everything, and now I get some weird errors. The first is when importing an android library class eg:
import android.view.MotionEvent;
which gives the error message:
** Only a type can be imported. android.view.MotionEvent resolves to a package**
And the second is when I run on device where the console says:
**Using latest Build Tools: 23.0.1 [echo] Resolving Build Target for androidTest...
BUILD FAILED C:\Users\Mark\Documents\Processing\modes\AndroidMode\sdk\tools\ant\build.xml:538: Unable to resolve project target 'android-22'**
I know others seem to have similar issues... any solutions though?!
Mark
Answers
OK I have fixed the 2nd problem by getting the right API's installed..
@hudson_m400 put your import statements and some code
Both issues are gone now ..
After all my fiddling with different APKs and the manifest issue in my other thread, it all seems to be fixed.