android - detect shake gesture using accelerometer
mobile - 4.3 jellybean
wear - 4.4w kitkat w
this project is originally created on android studio 0.84, it was updated to android studio 1.0.
steps to do migration from android studio 0.84 to 1.0:
- first, you will see errors like:
Error:(16, 0) Gradle DSL method not found: 'runProguard()' Possible causes:
- The project 'shakedetect' may be using a version of Gradle that does not contain the method. Gradle settings
- The build file may be missing a Gradle plugin. Apply Gradle plugin
solution: to fix this, change runProguard in build.gradle to minifyEnabled
clean and rebuild
see http://stackoverflow.com/questions/27078075/gradle-dsl-method-not-found-runproguard
- after the above is done, you may see errors like:
Build failed with an exception. * What went wrong: Task '' not found in root project
solution: invalidate cache and restart.
File | Invalidate Caches / Restart
see http://stackoverflow.com/questions/25172006/android-studio-build-fails-with-task-not-found-in-root-project-myproject for other things to check