Tag: cordova

Ionic Android build: java.lang.IllegalStateException: buildToolsVersion is not specified

Since today, somehow my ionic project is not longer able to build for some reason. I already tried to remove the platform and add it again, but it didn’t work. I now almost spent three ours with upgrading, downgrading and reinstalling cordova and ionic but for some reason I always get the following error when […]

Phonegap (Android Build) – Intermediate Screen before Splash Screen

When I first launched my app, built using build.phonegap.com and then distributed to my Nexus 7 (running Jelly Bean 4.3), I see a black screen with a gray title bar at the top. Is this normal, or is there a setting I need to enable/disable? I can say that this build was a debug build […]

Override Java version when building a Cordova project with gradle

I am trying to build a Cordova project using gradle as a build tool. In the Cordova project I have my own plugin that requires Java 1.7. In the build.gradle that comes with Cordova the java version is 1.6. build.gradle: android { compileOptions { sourceCompatibility JavaVersion.VERSION_1_6 targetCompatibility JavaVersion.VERSION_1_6 } } The build.gradle comes with a […]

phonegap android application name appears before splash screen

This is my first attempt to create a simple android app using phonegap 1.9.0. The problem I’m facing is that when I start my app (both using emulator and my android phone) it displays the application name and icon before it proceeds to the splash screen I’ve set up. It looks like this: http://imgur.com/iZ1i3 How […]

New PhoneGap 3.0 The import org.apache.cordova cannot be resolved

I’m installing the new phone gap 3.0 with the all-mighty command line. cordova create hello com.example.hello HelloWorld cordova platform add android When I open the android project in eclipse I get this error on HelloWorld.java: The import org.apache.cordova cannot be resolved I guess I have a missing library but how to I solve this if […]

Cordova and setting Android using command line

I am trying to migrate my existing project from cordova 2.1 to the latest, 3.1 wich can be installev vía command line, I already have the Android SDK installed, So: sudo npm install -g cordova // All good cordova create hello com.example.hello HelloWorld // All good cordova platform add android // Then it fires: Checking […]

Import and run a Phonegap 3.0 project with Intellij IDEA 12/13?

Just starting with Phonegap and having some trouble understanding the directory structure and setup (on Windows). I have been able to install and setup phonegap, jdk, android sdk, ant, etc. Using the command line I can now create a new project, edit the source files in www , build it and run it on my […]

Phonegap Media API (Android) – Media is not defined

I want to build a Android WebView app, which plays a sound when the user presses a button.For some reason I can’t get the PhoneGap media API to work. It keep showing: Uncaught ReferenceError: Media is not defined at file:///android_asset/www/script.js:3 Here is my code: $(document).ready(function(){ var myMedia = new Media(“/android_asset/www/one.mp3”); $(‘.one’).click(function(){ myMedia.play(); }); }); Anyone […]

Uncaught Error: INVALID_STATE_ERR: DOM Exception 11

I am getting the below error. Uncaught Error: INVALID_STATE_ERR: DOM Exception 11 Here is the code where I am getting Error RUN TIME. xhttp.setRequestHeader(“Content-type”,”application/xhtml+xml”);<br> xhttp.open(“POST”,xmlFile,true);<br> xhttp.send(postData); I tried with false in the third parameter of xhttp.open. Can anyone tell me what’s causing this?

cordova Manifest merger failed

when we are trying to build android using cordova phone-gap this error will occurs :mergeDebugResources :processDebugManifest D:\Android\ThePlug\platforms\android\AndroidManifest.xml:27:9-31 Error: Attribute meta-data#android.support.VERSION@value value=(25.3.1) from [com.android.support:appcompat-v7:25.3.1] AndroidManifest.xml:27:9-31 is also present at [com.android.support:support-v4:26.0.0-alpha1] AndroidManifest.xml:27:9-38 value=(26.0.0-alpha1). Suggestion: add ‘tools:replace=”android:value”‘ to <meta-data> element at AndroidManifest.xml:25:5-27:34 to override. See http://g.co/androidstudio/manifest-merger for more information about the manifest merger. :processDebugManifest FAILED FAILURE: Build failed […]

Android Babe is a Google Android Fan, All about Android Phones, Android Wear, Android Dev and Android Games Apps and so on.