Error install Android SDK in Appcelerator 2017 - android

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.

Related

Android Studio Error : installed build tool revision 32.0.0 is corrupted

I'm on Android Studio 4.1.1. I created a new project and haven't added anything to the starter code and whenever I click build or run, I get this error:
Installed Build Tools revision 32.0.0 is corrupted. Remove and install again using the SDK Manager.
I am using android studio for the first time and wanted to print a simple hello world program , and this is becoming pain in the ass.
Please try the following instructions (assuming you are working on MS Windows):
Firstly, locate your SDK folder, e.g. %ANDROID_SDK_ROOT%.
Copy (NOT Rename) %ANDROID_SDK_ROOT%\build-tools\32.0.0\d8.bat to %ANDROID_SDK_ROOT%\build-tools\32.0.0\dx.bat
Copy (NOT Rename) %ANDROID_SDK_ROOT%\build-tools\32.0.0\lib\d8.jar to %ANDROID_SDK_ROOT%\build-tools\32.0.0\lib\dx.jar
Verify if build issue has been fixed.

Android SDK installation failed (Jenkins' Android Emulator plugin) Caused by: java.io.IOException: Failed to donwload SDK archive

I've been trying to integrate Android Emulator in my Jenkins workflow on my Windows PC using this plugin. I've been facing this error.
Started by user admin
Running as SYSTEM
[EnvInject] - Loading node environment variables.
Building in workspace C:\Users\user\.jenkins\workspace\Testing if android emulator works
[android] Outdated SDK Tools found. Upgrading from '26.1.1' to 'build 6609375'
[android] Android SDK installation failed
[android] hudson.plugins.android_emulator.SdkInstallationException: Failed to download Android SDK
at hudson.plugins.android_emulator.SdkInstaller.doInstall(SdkInstaller.java:91)
at hudson.plugins.android_emulator.SdkInstaller.install(SdkInstaller.java:72)
at hudson.plugins.android_emulator.AndroidEmulator.setUp(AndroidEmulator.java:278)
at hudson.model.Build$BuildExecution.doRun(Build.java:157)
at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:514)
at hudson.model.Run.execute(Run.java:1907)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
at hudson.model.ResourceController.execute(ResourceController.java:97)
at hudson.model.Executor.run(Executor.java:429)
Caused by: java.io.IOException: Failed to donwload SDK archive
at hudson.plugins.android_emulator.SdkInstaller.installBasicSdk(SdkInstaller.java:189)
at hudson.plugins.android_emulator.SdkInstaller.doInstall(SdkInstaller.java:89)
... 8 more
Finished: NOT_BUILT
I have taken the following steps after seeing people's discussions on SO and other websites (but haven't been able to resolve the issue):
Updated to latest android skd, and sdk command line tools. Also, updated possibly everything else that I could from Android Studio.
Added windows/system32 in path in env variables
Ran cmd as admin to run jenkins (realised later that it's a bad idea as scripts can do anything)
Went to http://localhost:8080/configure > set Android SDK root variable.
Went to http://localhost:8080/configure > tick Environment variables > set ANDROID_HOME & JAVA_HOME variables.
Went to http://localhost:8080/configureTools/ > set jdk installation.
Note: I've verified that all environment variables are correct.
Here's some of my thought process:
The error message says that it's trying to update tools from v 26.1.1 to a newer version. But I don't even have sdk tools of this version in my Android SDK!
This may hint to a dual installation of Android sdk but there only one. And after that, I don't know what's wrong...
I'm stuck on this for several days now & any help or suggestion will be greatly appreciated :)
In the ENV, you specified paths to internal Android SDK tools? For example, you add to PATH /emulator and /platform-tools folders? This folders contains in the Android SDK root.

Setting up AndroidStudio for ReactNative on Windows

everybody,
Yesterday I Installed everything necessary to develop and run an Android app with React Native on Windows: I updated my node.js, installed python2, react-native-cli, Android Studio with AndroidSDK with all tools and all necesary package details how it is described in React Native documentation. Also I set up Environment variables and path for ANDROID_HOME. Wneh I create a new emulator and run it I received this messages in Android studio:
"Unable to run 'adb': null"
and
"'C:\Users\User5\AppData\Local\Android\Sdk\platform-tools\adb.exe start-server' failed -- run manually if necessary"
When I create and run a new ReactNative app the building stucks on 97%. Attach imgs bellow.
When I create and run project on iOS there is no any problem.
I watched a lot of videos and tutorials and nothing seems wrong. But they all are with older version of Android Studio.
Does anybody know where could be the problem?
Thanks in advance.
My React Native very first Android Project stuck building on this stage:

Taco Android build Error

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.

Visual Studio 2015 hangs when create/open a Cordova project

I used Visual Studio 2015 to develop mobile app with Cordova. Before I upgraded to Windows10, I was using Windows 7 and it worked perfectly fine. After I've upgraded to Windows10, whenever I open a Cordova project or create a Cordova project the Visual Studio hangs (not responding).
I have tried to reinstall the Visual Studio but it still hangs.
Anyone has faced this problem before?
Thanks
Here is the solution for this problem in VS 2015. This issue if you have Windows 10 and latest updates in VS 2015 including latest type script installation.
1) Open command prompt as administrator.
2) Navigate to the following folder path:
cd "C:\ProgramData\Package Cache"
3) write the following command to find out vs_edition.exe file:
dir vs*exe /s /b
4) copy the full path that contains your vs edition exe from the screen.
5) write the following command:
"C:\ProgramData\Package Cache\{GUID}\vs_enterprise.exe" /modify /installselectableitems Javascript
6) VS installer will start, click on modify and then update. no need to change any features selection.
7) Wait until the installer finishes.
8) From the command prompt, navigate to the following folder:
C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE
9) Run the following commands:
devenv /updateconfiguration
devenv /clearcache
Below screenshot shows the full commands set.
Now, you will be able to open VS 2015 and create cordova apps.
This is a known issue, and the solution is mentioned in the following link.
I still had few more issues with the Blank Cordova Project which would simply not build once the hanging issue was fixed. I'll share my experience here to help others.
After recovering from the VS.Net2015 hanging I was still getting
"Error MSB3073 The command "platforms\android\cordova\clean.bat" exited with code 1. BlankCordovaApp7 C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\ApacheCordovaTools\vs-mda-targets\Microsoft.MDA.FileMirroring.targets 354"
I tried reinstalling the Android Studio again and found that it was not working, and the issue was: I had installed a 32 bit Java SDK on 64Bit OS. After In installed the 64Bit JDK and correcting the Path variable to point to this directory, I was able to start the Android Studio.
Now my Blank Cordova project was still not compiling with an error
'MySQL' is not recognized as an internal or external command, BlankCordovaApp7 C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\ApacheCordovaTools\vs-mda-targets\Microsoft.MDA.FileMirroring.targets 287
This was an interesting one, looks like its an issue with MySQL, in the PATH variable there were some & within the path. I used "" to surround those path
Now its compiling and also able to start the Ripple.
Hope it helps someone as it took me more than 2 weeks to fix.
Regards
Kiran
Today , solved for me with Visual Studio Tools for Apache Cordova Update 2 for VS2015 Enterprise & Windows 8.1. ;-)
I think there are some updates for Visual Studio 2015. I reinstalled it and it is working now.
Here is what I did:
Uninstall the Visual Studio 2015 using the installer (vs-community.exe) from https://www.visualstudio.com/en-us/downloads/download-visual-studio-vs.aspx
Install Visual Studio 2015 using the same installer(vs-community.exe) and choose Typical Installation
After the installation is done, run the installer (vs-community.exe) again and choose Custom Installation and choose to install Apache Cordova
Then I am able to open and build Cordova project
Not sure if this helps.
In my case with VS2015, the problem was about missing SDK build tools for Android. The lack of information is due to the fact that Visual Studio does not show all the build information by default. Once more information is shown, we could see issues with third party dependency issues like Android build tool. There are a couple of ways to get more information during a build.
MSBuild build output verbosity
Dependency checker on the Cordova tools
Both of these are available from the tools menu. For more information see this post:
http://www.ozkary.com/2016/01/visual-studio-2015-apache-cordova.html
hope it helps.

Categories

Resources