I am going through the “Getting Started” for Android and I am stuck on 6. Hello World.
I have literally been Googling things for 2 or 3 hours trying to figure this out. When I run
rake device I get this error:
ERROR! app.sdk_path should point to a valid Android SDK directory. Run 'motion android-setup' to install the latest SDK version.
Of course I have run
motion android-setup multiple times at this point and it makes no difference. A couple times I have run
rake device and got a different error:
./build/Development-27/java/com/yourcompany/hello/MainActivity.java:5: cannot access android.app.Activity bad class file: android/app/Activity.class(android/app:Activity.class) class file has wrong version 52.0, should be 50.0 Please remove or make sure it appears in the correct subdirectory of the classpath.
I am not sure what to do. Any help would be appreciated.