Im building a simple application for a project in my university with Ionic and all was going very good until yesterday, i used the common command ionic build android and threw me an -Xlint error on the IonicKeyboard plugin…
Till yesterday i did not have any of these warnings and built normally with ant and tested the apk normally. after that error i updated the android studio and now it builds my app with gradle and the resulting apk has now different name than previously, on different folder and ofcourse it doesnt work when i test it on physical device anymore (no changes in the source code at all from before and after -Xlint) now after so many hours of searching i:
- ionic platform remove android.
- Reinstalled Android Studio.
- npm clean cache.
Also my app runs successfully on ionic serve and serve --lab I really dont know what else to do, if you need more information ask me, even though i dont really know how did it switch to gradle from ant.
P.S. (ionic and cordova cli’s are updated also npm version is 0.12 and android has installed build-tools(22.0.1), sdk-tools(24.2) and platform-tools(22) and have ANT_HOME and Java_HOME in environment variables.
Here is also a capture from -Xlint error: