Livecode android sdk setup fails - android

https://livecode.com/app-in-a-day/installation/android/
http://lessons.livecode.com/m/2571/l/27389-how-do-i-become-an-android-developer-on-a-mac
explain how to setup the android sdk with LiveStudio on MacOs. I am using Android Studio Version 2.3.1 succesfully on Mac OS Sierra using the path Library/Android/sdk (relative to my home directory).
When I try to select that path for LiveCode Version 9.0.0 dp-6 in Mobile Support/Location of Android development SDK root
i get the message
"The chosen folder is not a valid Android SDK. Please ensure you have installed it correctly, and enabled support for Android 4.0.3 (API15)".
So i checked the installed SDKs platforms and Android 4.0.3 IceCreamSandwich API Level 15 Revision 5 is indeed installed.
The problem seems to haven been common in the past see e.g.
http://forums.livecode.com/viewtopic.php?t=15215
Which folder needs to be specified when selecting the location of the Android development SDK?
What can I do about this with the current state of LiveCode and Android SDK versions?
Will this happen again on Android SDK changes?

You must use absolute path, not relative path.
It's a folder containing:
add-ons
docs
platforms
samples
sources
temp
build-tools
extras
platform-tools
SDK
Readme.txt
system-images
tools

Related

How to change Android SDK Platform-Tools?

I have two Windows 10 machines with the latest Visual Studio 2017 (15.9.18) installed. But one of the machines has a different Android SDK Platform-Tools version in the Android SDK Manager:
One has 28.0.0 and the other one has 29.0.1. How can I get them on the same version?
Now I found a way to change the Android SDK Platform-Tools. You can download the versions from here:
https://dl.google.com/android/repository/platform-tools-latest-windows.zip
https://dl.google.com/android/repository/platform-tools_r29.0.1-windows.zip
https://dl.google.com/android/repository/platform-tools_r28.0.0-windows.zip
Then go to your Android SDK Location (for me it is C:\Users\some-user\AppData\Local\Android\android-sdk\platform-tools) and put the files from the archive in this directory. Make a backup first - just in case.
Don't know why you can't do this in the Android SDK manager (Android SDKs and Tools Version 1.2.192 (d15-9/9312139)) itself and why he doesn't offer an upgrade after initial installation of Xamarin.

Titunium Studio Cannot find Android SDK

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.

What packages are really required for Android Applications Development

I've a 40kb/s Internet. The Android SDK took me 1 and half hour to download(at first I thought it is packaged with all required packages). I am using Ubuntu 14.10(yea, it took me 11 hours to download).
I downloaded and installed Android SDK Tools, Android SDK Platform-tools and Android SDK Build-tools. In Android 5.0.1(API 21), I unticked both Android TV whatever System Image and both Android Wear whatever System Image because I am sure that I'm not going to use it.
My questions is what things are really required for Android applications development? Can anyone explain what are those packages for?
EDIT: I am not new to Java development. I have Java JDK 7, Eclipse(without the ADT plugin) and IntelliJ installed. I'm going to use IntelliJ as it is came with "Android Support" plugin)
Downloading this packages will be enough for you
SDK Platform in Android 5.0.1 (API 21)
Android SDK Tools 24.0.2 in Tools
Android SDK Platform Tools 21 in Tools
Android SDK Build-tools 21.1.2 in Tools
You need eclipse,adt bundle and android sdk tool that's it. No other thing is required for it.
Basically you need:
Eclipse IDE integrated with Android
Select Android version on which you're going to develop your application (Lolipop/KitKat etc) through SDk Manager
Java SDK (with JRE)

Android SDK manager cannot download samples of android

I have downloaded the Eclipse IDE with built-in ADT (Android Developer Tools) of the latest version. Then I run the Android SDK manager to get the samples
as the picture descripted below:
Name API Rev Status
Tools
Android SDK Tools 22.0.1 Installed
Android SDK Platform-tools 17 Installed
Android SDK Build-tools 17 Installed
Android 4.2.2(API17)
SDK Platform 17 2 Installed
ARM EABI v7a System Imange 17 2 Installed
Extras
Android Support Library 13 Installed
There is no "uninstalled " options , So how can I get the samples and other uninstalled packages?
Thanks in advance!
After investigation, "https://dl-ssl.google.com/ " is banned from accessing because of some reasons. And based on the solutions from network I can resolve the problem.
The solution:
environment: WINDOWS 7, Eclipse IDE with built-in ADT
find the file hosts from the directory"C:\WINDOWS\system32\drivers\etc"
edit the file hosts, append "74.125.237.1 dl-ssl.google.com"
save the file
run the Android SDK manager.exe
choose the uninstalled packages and download them

install android sdk on ubuntu

I have downloaded the android sdk tools now according to this page I should update it so I go to it's directory and type:
./android
when sdk manager opens I can see that sdk tools is installed but there isn't anything else to do. But since Qt doesn't recognize sdk so I assume I have not completely installed it yet. Is there anything else I should do to complete the installation?
Edit:
I tried somthing else. I downloaded ADT bundle. in that folder there is a sdk folder I used that folder and it worked with qt. But in that directory there are some folders that in my original sdk didn't exist:
extras
platform-tools
system-images
I suggest you to go with ADT Bundle for Linux, you can get it from following link
Android ADT for Linux
Extract the downloaded package.
Download OpenJDK for Linux and install
Update QT if necessary
Add your location of SDK to QT
Now you might be able to run Eclipse from your ADT location
ADT bundle contains
Eclipse + ADT plugin - A Customized eclipse with location of Android SDK is presetted
Android SDK Tools - Inside tools folder, contains android SDK services like Emulator, Hierarchy viewer, SQLite etc
Android Platform-tools - Contains the Compiler runtime, ADB etc
The latest Android platform - Contains each and every android versions you have downloaded with platform specific samples and themes for emulator
The latest Android system image for the emulator - Contains a system image for each of the emulator for the platforms you downloaded
Download Android SDK for Linux from Here
Extract the folder.
Now navigate to eclipse folder and run eclipse from there. android sdk is already integrated in this eclipse package and you will also get the latest SDK with this package.
UPDATE: Directory path for QT
Android SDK Location: /home/vipul/dev/android-sdk-linux
Android SDK Location: /home/vipul/dev/android-ndk-r8e
JDK Location: /usr/lib/jvm/java-6-openjdk-i386

Categories

Resources