When I run cordova build android I get the following error:
Error: Pruning at selector "widget" from "/Library/WebServer/Documents/app/app-name/platforms/android/res/xml/config.xml" went bad.
I have tried reinstalling the Android platform several times, but no luck.
I am using Cordova 6.1.1, Android 5.1.1 and have updated Android Studio to the latest Dev tools and SDK.
Anyone else experienced this problem? I can't find anything similar online.
If anyone else experiences this issue, I fixed it by:
Removing all platforms.
Removing all plugins
Update Cordova
Add all platforms
Add all plugins
Build Android should run successfully.
Related
i'm using ionic and i try to run my app in android studio. On Ios everything is working fine but android studio is always saying please add configuration. I actually have no idea how to add a configuration. Also my project contains three packages. I'm building my project with the following commands:
ionic build
npx cap sync
npx cap open android
Also android studio cannot resolve some libraries.
Please find attached a screenshot of the errors i have mentioned above:
thank you
I had this same issue, and I think it was a few problems compounded. It looks like you shouldn't have to add configurations manually, so if the "app" configuration doesn't appear automatically then something is wrong. I ran
ionic cap build android
which built everything and launched android studio. If that doesn't fix it, you might be missing some sdks. Try running this command from your android folder.
./gradlew assembleDebug
Mine complained about missing a specific version of the android sdk which I had to install with the android studio sdk manager. Then I relaunched android studio, and the "app" configuration was there.
I have a situation where my inAppBrowser is not working on android but it's working in IOS, browser and PhoneGap App.
I don't exactly know what's wrong here, but I have the feeling that the following
errors are causing this problem
/System.err: java.lang.ClassNotFoundException: org.apache.cordova.inappbrowser.InAppBrowser
/com.test.wrapper I/System.out: Error adding plugin org.apache.cordova.inappbrowser.InAppBrowser.
Is there anyone who is facing a similar issue? Anybody able to help here?
If this issue is happening recently, the reason is a bug in Cordova Android 7.1.3.
Refer the following links,
Android Class Not Found
Plugin doesn't install correctly
Your best option is to stick with Cordova android 7.1.2 or upgrade to 7.1.4.
You can specify the Cordova Android version while installing like this,
cordova platform add android#7.1.4
The error message tells you the problem. The plugin did not get added to the project.
Uninstall & reinstall the plugin.
cordova plugin remove cordova-plugin-inappbrowser
cordova plugin add cordova-plugin-inappbrowser
I was just coding in my Xamarin.Forms project, and suddenly, this error appeared:
Project is not compatible with monoandroid81(MonoAndroid,Version=v8.1). Project TaskX.iOS supports: xamarinios10 (Xamarin.iOS,Version=v1.0)
I donĀ“t really know what this means. Does anyone have a solution?
After a few days of messing around, it worked when I installed the latest version -
I had 8.1 installed but as soon as I installed "Android SDK Platform 28" (Latest) + updated all sdk's everything worked
maybe updating the sdk's was the solution but just make sure you specify a installed (updated) android version correctly
This is yet another failing of the Visual Studio error list. I am getting this error on my Android projects and a very similar one on my IOS project. Neither project uses NHibernate. I can unload my NHibernate project and both my Android and IOS project still build. Yet the error remains. I can change the error list filter to Build so I can ignore this IntelliSense error. It's not much of a solution but neither is Visual Studio's error list.
I fixed this issue removing an android reference on my iOS project.
Expand reference on your iOS project and look for and .Droid and remove it
I'm trying to build a Cordova Build for android in Visual studio team services.Most of the details are provided in the respective tabs:"android","advanced"(screenshots:).Is there anything else to be filled?
Got an error while building(screenshots:).Can anyone suggest where am i going wrong?
It is due to the wrong path chosen for the cordova working directory.Changed the working directory from "src/mobileApp/******/www" to "src/mobileAp/******". This fixed all issues.
I use Visual Studio 2015 to create Cordova project, but when I debug the solution, the VS told me:
Error DEP10402: Could not locate a deployable apk. You may need to build your project.
and I couldn't get any project apk.
Use Cordova CLI version 5.4.1 in config.xml platform tab.
This Error may occurred because of the incompatibility of cordova version,
check your installed cordova version bye entrig following
cordova -v
and make sure same version added to visual studio project, in config.xml -> platform -> cordova cli
I had the same issue with Visual Studio 2017 and Ionic 3. The cordova-cli 8 (if you use a global cordova-cli) copies the apk into another folder and hence VS doesn't find it. I added a copyapk script which is run after the build is completed.
https://github.com/hamburml/ionic3-vs2017-blank-template
it happened before with some versions of cordova-cli
try using 5.4.1 or 5.3.0
i experience this problem in 5.4.0 but it dose not appeared in 5.4.1
it seems that some cordova-cli versions did not use --release as it should be
How about try to clear solution from Project root and rebuild again.
Although it's an old question, in my case the problem was caused because of configuration name.
In my project I have several configuration names for different environments (local, dev, pro), when using one of this names, the problem occurs.
If configuration name is set to default "Debug" the error disappears, but then I lose easy environment configuration.
I had the issue and I finally manage to run my application after restarting my machine and avoiding to open any application. It looks like the problem does not arise when there's a lot of available memory...