Cordova Build for Android Failed - VSTS - android

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.

Related

phonegap build android => cant find apk with android 7.0.0

I tried to update android in an existing phonegap project, told me fetching 7.0.0 ... completed. when I list platforms, it told me 6.3.0 was installed. So I did
phonegap platform remove android
phonegap platform add android
and copied my jks into platforms/android again.
phonegap build android (--release) is both telling me:
[phonegap] executing 'cordova build android' ...
[phonegap] completed 'cordova build android --no-telemetry'
But I cant find my outputs folder. Neither in platforms/android/build (I only have folder "android-profile" with a json and a rowproto file for every build) nor in platforms/android/app/build (there are folders "intermediate" and "generated"). I already searched for android-release-unsigned.apk and app-release-unigned.apk - nothing found.
Anybody an idea where to search or find out why it isn't created although there are no errors?
Thanks in advance
The answer can be found by adding "-d" to the build command. Then phonegap gives detailed information on build problems. In my case it could not find google-services.json
I faced the same issue and found that the output directory has been changed from ..platforms\android\build to ..\platforms\android\app\build\outputs\apk\debug
You could check the above directory.

Not able to build ionic project. Error "CordovaLib:processReleaseResources Failed"

Hi I am trying to build ionic project with command "cordova build --release android" but getting the error attached with image in full details screenshot.
I have search the error a lot no luck. please help me. thanks
Encountered the same Problem and solved it by installing the old Android SDK Build-tools 23.0.3 instead of 24.0.1
One possible solution is to rename every filename who content a special character (image but also html template, javascript file, css).
For example a greek character in the name of an image.
Solved! Its an android build or ionic issue. Downgraded the build version with 23. Don't know exactly where is the issue but 24 and above versions are not working here. Working perfectly with 23.

Cordova pruning error for android config.xml

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.

Ionic Framework: Exporting Project To APK

I have created an app in ionic framework. Now i want generate APK of my code by using Android Studio. But i am getting this error
*"Script 'D:\uvionic\myApp\platforms\android\CordovaLib\cordova.gradle' line: 117
* What went wrong:
A problem occurred evaluating root project 'android'.
Unable to determine Android SDK directory."*
will you please help me where i am wrong. Thanks in advance.
May I ask why you want to export through Android Studio?
Ionic has a guide on building for Android through Ionic CLI, which might be easier than building manually with Android studio.
add your SDK path in system environment PATH variable (change dir according to your installation)
C:/Program Files/android/sdk
let me know if its not working..

Android Studio sample project Build Errors

I am using the sample project that is loaded with Android Studio.
I have bought a copy of Android Studio Essentials and have worked through the sample project.
When it is time to run the project, I get a BUILD FAILED warning.
The error is -
Could not find any verfsion that matched com.android.support-v4:20.+.
Required by: MyApplication2:app:unspecified.
Looking forward to resolving this.
Thanks
Peter
assume you have an experience in android development using Eclipse before. You can read a link below to build in Studio.
https://developer.android.com/sdk/installing/studio-build.html

Categories

Resources