Modifying MainActivity.java does not result in new apk?
I'm working on android_tutorial_pubsub. When I modify MainActivity.java, it does not seem to build a new MainActivity-debug.apk. I added log messages to MainActivity.java; Then I did the standard build command (../gradlew debug), uninstalled the old app and then installed the apk file. But the log messages weren't appearing in logcat. Then I noticed that the time stamp on the apk file wasn't changing. When I did a clean and rebuild (debug), my messages appeared in logcat. If I don't do a clean, building doesn't seem to update the apk file. Any ideas what's going on?
Thanks!
How are you building your project? Eclipse? Ant? Something else?
How are you building your project? Eclipse? Ant? Something else?
I saw the same behavior. This seems to happen when building with gradle or gradlew.
As jbohren mentioned, I was building with gradlew at the command-line.