Unable to Locate Android SDK Error in Appcelerator Studio - android

I am facing below error while trying to compile android app using emulator in appcelerator studio.
Error:
Unable to locate an Android SDK.
If you have already downloaded and installed the Android SDK, you can tell Titanium where the Android SDK is located by running titanium config android.sdkPath /path/to/android-sdk, otherwise you can install it by running 'titanium setup android' or manually downloading from http://appcelerator.com/android-sdk.
I have provided sdk path as /Users/Username/Library/android-sdk-macosx in appcelerator studio.
Using titanium config android.sdkPath /path/to/android-sdk in terminal error titanium: command not found
I have installed Android studio on same Mac and I have provided same path in appcelerator studio

The correct command is
appc ti config android.sdkPath /path/to/android-sdk
Or Else change manually using Appcelerator Studio:-
Click on Axway Appcelerator Studio-->Preferences-->Studio-->Platforms-->Android
and then select android-sdk folder. You are done.

Related

Ionic can not add android

I try to uninstal cordova then instal again but still not working
[ERROR] An error occurred while running subprocess cordova.
cordova.cmd platform add android exited with exit code 1.
Re-running this command with the --verbose flag may provide more
information.
It looks like you need to install your android SDK/build tools.
You can do it manually or using your android studio installation if exists.
To do it with Android Studio you can:
Go to settings->Appearance and Behavior->Android SDK
Go to the SDK Platforms tab and select the latest Android SDK
package.
Go to the SDK Toos tab and select the following checkboxes:
Android SDK Build-Tools
Android SDK Platform-Tools
Android SDK Tools
NDK
Android Support Repository
Google Repository
Apply and accept
To do it without using Android Studio there's an answered question here: How do I download the Android SDK without downloading Android Studio?

Error for SDK tools Android Studio

I've started to learn to make Android apps recently but I've faced a problem in launching Android Studio!
I downloaded android studio and also downloaded SDK tools from here ( I downloaded them separately ) and when I give SDK path to the Studio, it installs SDK successfully but when the project opens, it says that some Android SDK tools are missing!
Error :Gradle sync failed: Failed to find target with hash string
'android-26' in: E:\android-sdk
I'm confused because I can find no problem in my downloading and installing but there is an error!
What should I do?
install android studio and sdk also( not separately) then create a new project and build them, and if it work then, you can move your sdk file and then connect the path your sdk.
i think you tried separately and some how any data are being missing .

Installing React-Native Android in existing React Native iOS project?

I have a fairly involved React-Native project in iOS and want to port it over to Android and test it's transferability. I have done the standard install instructions of:
'Install the latest JDK
Install the Android SDK:
On Mac: brew install android-sdk
export ANDROID_HOME=/usr/local/opt/android-sdk
Open the Android SDK Manager (on Mac start a new shell and run android); in the window that appears make sure you check:
Android SDK Build-tools version 23.0.1
Android 6.0 (API 23)
Android Support Repository
Click "Install Packages"'
But I still do not see the Andriod directories in my existing app. Is there a way to get Android dependencies without doing 'react-native init AwesomeProj'?
Adding Android to an existing React Native project
If you already have a (iOS-only) React Native project and want to add Android support, you need to execute the following commands in your existing project directory:
Update the react-native dependency in your package.json file to the latest version
$ npm install
$ react-native android

Unable to add Android platform to Apache Cordova

How do I recover from this error?
[Error: The command android failed. Make sure you have the latest Android SDK
installed, and the android command (inside the tools/ folder) added to your path. Output: ]
You just need to install the Latest version of Android i.e 4.3/4.4
Go to SDK Manager and install the latest SDK Platform.
And try run the command again.
cordova platform add android

Titanium Studio not building android application

I recently moved to titanium android development. i was trying to install titanium studio on my windows 8 machine and followed official site instructions.
1) I installed java 1.7 sdk (on C:\Program Files (x86)\Java)
2) Downloaded and installed latest titanium studio
3) Downloaded the latest android sdk
4) and created JAVA_HOME variable (C:\Program Files (x86)\Java\jdk1.7.0_21)
5) added (C:\Program Files (x86)\Java\jdk1.7.0_21\bin) to path varable
6) added android path to PATH enviorment variable
And tried to create a simple project and run it on emulator but i am getting errors
So i tried to run on my device and it gives different kind of error
Please Guide me to solve this issue....
link to similar problem over on the appcelerator q&a: https://developer.appcelerator.com/question/152497/titanium-sdk-310-error-typeerror-argument-of-type-nonetype-is-not-iterable-on-building-android-app
looks to be related to the android tools being is a different location than expected

Categories

Resources