I'm using Visual Studio 2015. I'm trying to build an apk from my cordova app for testing on my phone. But when I'm trying to build app, I obtain 2 error : Command failed with exit code 1.
You can find log file here :http://pastebin.ca/3379979
What should I do?
Thanks.
Related
I am working on a hybrid mobile app that uses Ionic Framework 5.x and while it builds with no issues, when I run the command ionic capacitor update and try to run the app using Android Studio 4.1.1 and Gradle 3.6.1 (android/capacitor/build.gradle), the app does not get installed in the Android emulator (I am testing on Android 7), due to the following error:
Gradle build failed with 1 error(s) in 1 s 532 ms
Is there a way I can find out what the error is?
Thanks
You can check Logcat or Event Log
Try to build manually:
cd ./android/capacitor
./gradlew :assembleDebug
I have created freestyle Jenkins project which supposed to run gradle script to build android artifacts and publishe it to some repostitories. It fails though. When I check logs error message says:
Failed to install the following SDK components:
emulator Android Emulator
Install the missing components using the SDK manager in Android Studio.
Obviously I can not install Android Studio on Jenkins server. Have anyone encountered such a problem before and how can one fix this?
I'm a complete beginner at creating mobile apps. I created an Ionic mobile app for Android using Windows and Visual Studio 2017. It works when I use the ionic serve command and try the app in the browser.
But when I try to import the project into Android Studio 2.3.3, I get an error message, that it can't build my app:
"Gradle sync failed: Failed to find target with hash string 'android-26' in: ...\AppData\Local\Android\Sdk
Gradle sync completed.
Gradle build finished with 1 error(s)."
I also get another error message after importing the project into Android Studio, when I try to run the "ionic cordova run android" command in cmd: "An error occured while running cordova run android. FAILURE: Build failed with an exception. Where: ...\cordova.gradle line 64
What went wrong:
A problem occured evaluating root project 'android'. No installed build tools found. Install the Android build tools version 19.1.0 or higher."
I imported the files into Android Studio choosing Import project (Eclipse,...). I chose this folder when importing:
node_modules\cordova-android\spec\fixtures\android_project. I'm not sure this is the right folder to choose.
I can see the simulated android phone , I can click on everything, but my app doesn't show up on it.
I checked the Android build tools, 25.0.3 and 26.0.2 are installed.
Thank you for the help in advance! I'm really stuck :S
You are choosing Wrong Folder.
To open your ionic generated app. You need to open the following folder in the path:
Your_ionic_project/platforms/android
Check whether you have set your system PATH variable pointing to android platform tools.
Something like :
C:\Users\Lokkeshwaran J\AppData\Local\Android\Sdk\platform-tools
There is a problem in the installation of Appcelerator. When you download the Android SDK, you receive the error. How to fix it?
The following data will be sent:
------
STATUS
------
pluginId com.appcelerator.titanium.android.core
pluginVersion 1.0.0.1478890706
code 0
severity 4
message (Build 4.8.1.201612050850) [ERROR] An uncaught exception was thrown!
ENOENT: no such file or directory, scandir 'C:\android-sdk-win\add-ons'
fingerprint 18594a85
stacktrace
------
REPORT
------
name xxx
email xxx
comment
productVersion xxx
productName Appcelerator Studio
javaRuntimeVersion 1.8.0_131-b11
osgiWs win32
osgiOs Windows 10
osgiOsVersion xxx
osgiArch x86
The Destination Folder should be the same as your Android SDK HOME folder. This path will be required when configuring Studio.
I suggest not to install Android sdk via Appcelerator Studio. Install Android Studio first. follow this tutorial to install Android Studio https://www.youtube.com/watch?v=l26rtc1wKYo&t=219s in your system. Test your sdk by running a simple hello world app first. if it runs perfectly then sdk is properly functioning. I prefer to do it this way because you can point out your problem easily. Whether the problem is occurring in Appcelerator Studio or it is actually your Android Studio that is not installed properly. You will find tons of resource in google if you face problem installing Android Studio in your system or you can just ask it here.
If Android Studio is working properly and you've successfully run hello world app in emulator/device then go ahead to install Appcelerator Studio in your system. Appcelerator Studio will automatically grab your sdk location when you install it or you can manually change the location to your sdk.
I just started learning building andoriod apps using Microsoft's open source software called taco, and I followed the steps they have on taco.tools and the problem comes when I use the Command taco build android I get the error No install build tools found , Error:cmd: commmad failed with exit code 1. I have however installed the build tools and checked if they were installed via the sdk manager.
Please see images
and also
It looks like you have two installs of the Android SDK. To fix: set your environment variable ANDROID_HOME=C:\Users\Insight\AppData\Local\Android\android-sdk
This issue is caused by Visual Studio installing the SDK into AppData, and Taco installing the SDK into Program Files.