I have created an application with Cordova and Ionic. I received Application build success on iOS.
I am trying to build this application on Android (via cordov
Try this:
You can solve this problem by installing Android SDK Platform 24 and Android
SDK Platform 23 and Sources for Android 23.
It solved my issue by adding xml namespace for phonegap (xmlns:gap="http://phonegap.com/ns/1.0") to config.xml
also, if you are using linux you must do "sudo chmod 755 gradlew" before you do the "./gradlew clean" to make sure it is executable.
Install another version of JDK (version 8u92) and change environment variable JAVA_HOME to the new location.
Clean the project and when you build it again, it should be working.
I had the same problem. The problem in my case occured because i had a "wrong" name for a picture. I had a greek character in one name of a picture. As a start move your folder with the images out of your folder of the app and try to build again.
I dont tell that it will solve your problem but it soved mine.
Hope that it will help you.
It mainly caused by the in-suitable of the cordova plugin with the current android paltform. Would you pls check your config.xml, and find the android-version, if it is: 7, please try to delete all your platform fold and type:ionic cordova platform add android@6.3
I had this same issue while using Cordova, it turns out the I had renamed my widget ID incorrectly in my Cordova config.xml file.
The Android App manifest requires names to be supplied in a javascript style using periods '.'. For example I had changed my widget ID to 'george-cordova-test', however it needed to be 'com.george.test' as this name is passed down and used in the android app manifest.
I have included the section from the docs below:
A full Java-language-style package name for the Android application. The name should be unique. The name may contain uppercase or lowercase letters ('A' through 'Z'), numbers, and underscores ('_'). However, individual package name parts may only start with letters. To avoid conflicts with other developers, you should use Internet domain ownership as the basis for your package names (in reverse). For example, applications published by Google start with com.google. You should also never use the com.example namespace when publishing your applications.
The package name serves as a unique identifier for the application. It's also the default name for the application process (see the element's process process attribute) and the default task affinity of an activity (see the element's taskAffinity attribute).
I imagine that I should probably have known this, but it took me a while to work it out, so if it helps anyone then that's great.
Solved by rename every filename who content a special character (image but also html template, javascript file, css)