Titunium Studio Cannot find Android SDK - android

I have a problem with Titanium Studio. It doesn't recognize my Android SDK installation.In the Platform->Android prefs panel, it says "No Android SDK found in the selected location"
When I first ran Titanium, it installed/updated a bunch of it's own and some Node plugins, so it's fulfilled all dependencies.
details:
OS: Windows 7 (x64)
Titanium Studio version is 3.3.1 (in %Appdata%\Roaming\Titanium Studio)
JDK build 1.8.0_31 (%Program Files (x86)%\Java\JDK)
Android SDK installation (in C:\Android-sdk)
Android SDK tools 24.0.2
Android SDK Platform Tools 21
Android SDK Build Tools
Android 4.2.2, API 17 (all children)
Android 2.3.3, API 10 (all children)
Android 2.2, API 8 (all children)
also everything inside the Extras branch
According to Titanium Compatibility Matrix, I have at least one Android SDK (4.2.2) that falls within the accepted SDK bounds for my Titanium version.

have you checked those links?
1.link 1
2.link 2
and it's better to have same architecture of java and OS.
you can also type this in command line and check if there is any specific android issue
titanium info

I don't know exactly what contributed to the solution (note that titanium CLI alwayes detected everything correctly), but here's what I've done meanwhile.
I had existing %ANDROID_SDK%, %JAVA_HOME% and the SDK's tools and platform-tools locations added to PATH from the beginning.
I Uninstalled Titanium (Studio & SDK), JDK+JRE, Node and Git.Then reinstalled JDK and Titanium.
Titanium installed node 10.13 and Git 14.sth to %programfiles(x86)%
the problem still existed. Cue another series of uninstalls.
Installed Jdk, Git, node and Titanium one-by-one.
Interstingly, this time Titanium couldn't locate Git which was installed in C:\git (it was added to PATH). So I symlikned C:\Git into %programfiles(x86)% (also linked C:\nodejs for good measure :) )
Now, I found the JDK installer only added C:\ProgramData\Oracle\Java\javapath to PATH which includes just java.exe, javaw.exe and javaws.exe. So I added %programfiles(x86)%\Java\jdk\bin to PATH.
This time, Titanium Studio worked correctly!
So, perhaps, the problem lies in Titanium Studio needing dependencies in certain locations.
(btw, before this, even though path to git.exe was in PATH, the Studio's console "couldn't find a 'bash' shell." now it does.)
hope this helps others who face the same issue.

Related

Cordova App in VS2015 does not build after sdkmanager update

Since I got some errors in my android emulator I manually updated my Android SDK using the command line sdkmanager. It seems the "old" SDK Manager does not support updates anymore. I do not have Android Studio installed (I did not need it since VS2015 installed the platform tools, too). After the update I have to use command line tools for avdmanager and sdkmanager. The "old" AVD Manager and SDK Manager do not work anymore.
However after this update Visual Studio 2015 could not compile my Codova app. I always got the error:
Android SDK not found. Make sure that it is installed. If it is not at the default location, set the ANDROID_HOME environment variable.
Before the app was building correctly.
I did set up the ANDROID_HOME variable to the SDK path (same path as in ADT_HOME). I also tried the suggestion by Abdul Rauf Mujahid to manually edit the regedit.
Both actions did not help.
The ADT_HOME variable is still a valid path.
It seems that others had similar problems Shandu
It seems that android was removed in the last update of the tools. In order to resolve this issue I had to downgrade my Andoid tools and platform-tools.
I downloaded the older revisions of sdk tools Revision 25.3.0 (March 2017) as well as platform tools Revision 25.0.3 and copied them into the relevant folders.
Now I can again compile my Cordova app

Meteor 1.3.3 on Mac running android: Android target: Android SDK not found

For a client of mine, I try to run the meteor run android command on a mac and I got the following message:
βœ“ Java JDK
βœ“ Android SDK
βœ— Android target: Android SDK not found. Make sure that it is installed. If it is not at the default location, set the ANDROID_HOME environment variable.
The situation so far:
PATH is correctly defined with links to the tools and to the platform-tools, ANDROID_HOME is fine too
The emulator and the SDK are installed with Android Studio
gradle is not found either, the tools/templates/wrapper path does not exist, which make me suspect a bad SDK installation, yet Android Studio handles everything
Meteor version is 1.3.3 for this project, and of course android paltform has been added to the project, which run fine on my Linux laptop
Verbose is not that verbose, in which situation Android SDK is okay and Android target is not ?
This is very hard to debug and I am desperate to find a solution, this issue seems unresolved in other related threads. Thanks for your help!
This is actually a bug due to the new version of the Android SDK Tools (> 25.3).
The solution is to go back to 25.2.x, the Meteor guide mobile page has been updated a few hours ago.
See the related Github issue
Links to download 25.2.5 version:
https://dl.google.com/android/repository/tools_r25.2.5-linux.zip
https://dl.google.com/android/repository/tools_r25.2.5-macosx.zip

Unity is asking me to locate my Android SDK

All I know is that I have my Android Studio in the applications folder, but it can't be selected.
I'm trying to build a unity project in Android. I'm also using Mac.
You need to find out where Android Studio installed your SDK. You are using Mac but the steps below is for Windows. It should be the-same for Mac too.
Open Android SDK Manager
Get the SDK Location
In Unity, go to Edit->Preferences...->External tools then put the Android SDK location into the SDK slot. Install JDK and put the JDK location in the JDK slot.
Just an add-on to the previous answer:
On the Mac the default location of the Android SDK is here:
/Users/[[Username]]/Library/Android/sdk/
(I would have added that in the comments but I still lack the credits for doing so.)

Appcelerator Titanium - Problems detected with the SDK settings

So I have the error in the title, I have got several fresh copies of the Android SDK and Titanium. Still getting the error. I tried several other fixes non worked.
I chatted with Ricardo Alcocer from Appcelerator, because we have problems like this with every Titanium Update.
He suggested this (after some trying out):
Remove the .titanium folder in your home directory. So that would be - on windows - /users/yourname/.titanium. It will be recreated. (You could make a backup)
Check the titanium (not Studio) configuration in a command window by running 'titanium setup check' (see http://www.appcelerator.com/blog/2014/03/quick-tip-use-the-titanium-cli-to-find-details-about-your-configuration/).
If there is a problem with the Android or SDK location, use titanium setup for reconfiguring. It has a nice menu.
Restart Studio, choose to configure Android, and choose the right Ti SDK for your project.
Hope this helps!
Jelmer
For install Titanium SDK, i always recommend (Windows):
Unnistall all Android references, Node.js, Titanium SDK (Users\\AppData\Roaming\Titanium), clean all folders and registry (ccleaner or other) and reboot system.
Unzip Android SDK
r22
and install or update any Android Machines less Android SDK
(android.bat)
Install Android
NDK
Set ANDROID_HOME and NDK_HOME at OS Path (+ reboot)
Install Latest Titanium Studio SDK + Node.js
Check Android SDK and NDK over Titanium SDK preferences

Titanium doesn't recognize Android SDK on Windows

Titanium doesn't recognize Android SDK on Windows
My problem is that Titanium Studio doesn't see my installed Android Platforms. I've tried removing and reinstalling everything via Titanium Studio but that won't make any difference.
Here's a screenshot of the SDK Manager: http://imgur.com/5F5oF
Titanium Studio Screenshot: http://imgur.com/w7j7n
Titanium Studio Details:
Titanium Studio, build: 1.0.8.201201262211
Build: jenkins-titanium-rcp-master-136 (origin/master)
Date: 26 January 2012, 22:14:21
OS Information:
Microsoft Windows 7 Ultimate
6.1.7601 Service Pack 1 Build 7601
Problem in Titanium Studio:
One or more pieces are missing from the Android SDK.
It may be that the Android SDK is already installed
and Titanium Studio cannot locate the directory, or
it may be that some additional components need to be installed.
Items required:
β€’An Android SDK is missing. Titanium requires Android platforms 2.1.* and 2.2.*
We just spent a couple days wrestling with this problem. The issue is with the latest version of the mobile sdk that you've installed. Titanium Studio actually uses the following script to validate the Android SDK path in the configuration window:
MAC path looks like this:
/Library/Application Support/Titanium/mobilesdk/osx/sdk_version_number_here/android/avd.py
Based on your post, your path is probably something like:
C:\Users\Dean\AppData\Roaming\Titanium\mobilesdk\win32\sdk_version_number_here\android\avd.py
If you browse to the folder and look for that script, it's probably missing. We just deleted that version of the sdk (for us it was 2.0.1.GA2). Then went to Help -> Check for Updates to reinstall the latest version.
Can you try installing all the api levels. SDK level 10-15.
Hopefully that would help. I am also running Titanium on the same version of windows, and it works fine.
This looks crazy, but you need to install sdk 7 and 8, with the google APIs. I think that they have code nested to these SDK. Check twice that you accept the licence with Google API.
Here is the complete guide of installing Titanium with Android.
I broke my head for 2 days on the very same problem, and the solution is quite simple:
Titanium 3.2 and above does not work with android sdk in Windows.
Downgrade to 3.1.3 and everything will be just fine
https://wiki.appcelerator.org/display/guides2/Reverting+to+a+Previous+Version

Categories

Resources