To determine if a problem arises from your development environment or because of a bug in the project, I recommend everyone to try creating a new project from the CLI cordova.
- Open terminal
- Type
cordova create foo; cd foo; cordova create foo; cd foo; - Type
cordova platform add android - Type
cordova build
It works? Therefore, the problem is setting up your project. It was my mistake: To add icons to the application, I created a folder called android inside `foo / plataforms / android / res / {android / icon * .png}
The correct way to add icons is to create a res folder in the root directory of the project Foo / {Res / Android / icon * .png}
Then add these files to the configuration file as follows:
<platform name="android"> <icon src="res/android/icon@ldpi.png" density="ldpi" /> <icon src="res/android/icon@mdpi.png" density="mdpi" /> <icon src="res/android/icon@hdpi.png" density="hdpi" /> <icon src="res/android/icon@xhdpi.png" density="xhdpi" /> </platform>
Lothre1 Jan 14 '15 at 10:15 2015-01-14 10:15
source share