QtCreator building Android apk is failing with wrong SDK version - android

I followed the steps shown here.
Installed JDK, Android SDK and NDK. Installed gradle, ant and OpenGl libraries.
When trying to build any android example I get the following error:
Error: Target id 'android--1' is not valid.
I tried this solution but I couldn't select any API. The paths are all correctly set. Using NDK 10 since 14 has known issues.
I verified that it is not a timeout issue as described here
Anyone encountering the same issue?

The reason for not building is this:
SDK Tools, Revision 25.3.0 (March 2017)
Obsolete/deprecated tools have been removed:
android
QtCreator is using the tools to get information about the Android SDK. Workaround is to get the previous version (e.g. 25.2.5).

Related

Failed to get the required ADT version number from the SDK

I got an error in eclipse after upgrading Android studio to 2.3 and SDK Tools for it.
when opening eclipse I got the following message:
I've tried many solutions like removing adt, but no fix also trying to copy traceview.bat but no fix.
what is the solution for this?
Thanks
Android SDK Tools Revision 25.3.0 removes obsolete/deprecated tools, see Release Notes
So probably you will need to use another SDK or try to return removed tools.
You can download older SDK (probably 25.2.5) like this
For windows http://dl-ssl.google.com/android/repository/tools_r[rev]-windows.zip
For Linux http://dl-ssl.google.com/android/repository/tools_r[rev]-linux.zip
For Mac http://dl-ssl.google.com/android/repository/tools_r[rev]-macosx.zip

Updated SDK not running lower SDK?

Even though it shows that I have version 25 of the SDK, this app doesn't run. I have downloaded this app from here. I got this link from an online course at Udacity.
Please help as to how I should run this app. It's important to learn this as it's a part of my tutorial course.
In your IDE, the error log shows you that you must install SDK Build tools 23.0.2 and sync your project. Simply click that link and the IDE should handle it for you.
Although you have build tools 25.2.4, 23.0.2 is required to build this project.
Also, the repository from which your project is from also states the prerequisites in the README:
Pre-requisites
Android SDK v23
Android Build Tools v23.0.2
Android Support Repository v23.3.0

Not generating the Activity and layout files while creating project

I am using eclipse kepler version and latest ADT plugin. But when i tried to create an android project it is not creating the blank activity and layout file. I could see the same question asked many times. In all those links the answer is given like Help->install new software-> https://dl-ssl.google.com/android/eclipse/.But when i tried this it is displaying like everything is already installed. So i need a proper solution.I am stuck with it. Please do help me.
I got the same problem as you
and I found this
ADT 23.0.4 (October 2014)
Dependencies:
Java 7 or higher is required if you are targeting the L Developer Preview.
Java 1.6 or higher is required if you are targeting other releases.
Eclipse Indigo (Version 3.7.2) or higher is required.
This version of ADT is designed for use with SDK Tools r23.0.2. If you haven't already installed SDK Tools r23.0.2 into your SDK, use the Android SDK Manager to do so.
so...I delete the newest version of SDK Tools 24.0.1
download and install older version SDK Tools r23.0.2
http://dl.google.com/android/installer_r23.0.2-windows.exe
it works for me....

How do you install and earlier version of Android Tools and Platform Tools?

I am trying to get the android simulator working in Appcelerator's Titanium Studio on Windows 7, but it is not compatible with the latest Tools version (23) due to android issue #66740. However I can't seem to find a way to install Tools version 22.
I used the Google installer from here: http://developer.android.com/sdk/installing/installing-adt.html
After installing if I run titanium setup check in the cmd window it says that the tools is unsupported version 23.0.2 and platform tools is unsupported version 20.
According to the Titanium Docs I need Tools version 22 and Platform Tools version 19. I can't figure out a way to get earlier version of either, I can only install earlier versions of the Build-tools and SDK.
Well, you could use direct link, like http://dl.google.com/android/android-sdk_r21.1-windows.zip - here is tools revision 21.1 with platform tools revision 19 (if you will download revision 22, just change the number; it will have r20 platform tools).
You could find more in official documentation of Titanium: http://docs.appcelerator.com/titanium/3.0/#!/guide/Installing_the_Android_SDK)
Or, you could just use tool right in Titanium: Go in dashboard, in "get started" click on "Android SDK->Install or Update Android SDK", as seen in picture [1]. Then unhide settings, select empty folder to installing sdk, and versions of Android [2]. It will install, and it should work.
Sorry, couldn't post images so far, so here:
(1): i.stack.imgur.com/bHHx5.png
(2): i.stack.imgur.com/mXQwH.png
Go to android sdk manager and download all the versions you want to do
http://developer.android.com/tools/help/sdk-manager.html
Thanks
I had the same problem. Eventually I have found the bug report that referred to it: TIMOB-17221. The bug is marked as fixed in SDK 3.3.0, but that version of SDK has not been released yet, so I was stuck again.
Then from Appcelerator's Wiki I found out that there is a Titanium CI builds page. Download 3.3.0 from there, install and everything should start working again. At least it did for me. Good luck!

ADT Plugin 10.0.1 not working in Eclipse 3.6.2

I have installed the latest android sdk (android-sdk_r10-windows.zip), latest eclipse helios (eclipse-jee-helios-SR2-win32.zip) and latest adt plugin (ADT-10.0.1.zip). Below is the listing for the installed packages of my android sdk:
Android SDK Tools, revision 10
Android SDK Platform-tools, revision 3
Documentation for Android SDK, API 11, revision 1
SDK Platform Android 3.0, API 11, revision 1
Google USB Driver package, revision 4
I did also edit my Windows path environment variable to include the path to adb.exe and set my android sdk location in eclipse preferences accordingly.
Everything looks perfect until I try to import a sample project (by phonegap). There is a console message telling "Failed to parse the output of 'adb version'".
I have been googling around since yesterday. I just wonder if anyone did manage to get all these (eclipse 3.6.2, android sdk r10, adt 10.0.1) click together.
By the way, I find that there is also no way for us to fall back to earlier combination of eclipse, android sdk, and adt plugin. In my case, I managed to get an earlier android sdk (android-sdk_r09-windows.zip) and adt 9. But when I tried to install the basic packages online, I was hit by this error:
"Failed to fetch URL https://dl-ssl.google.com/android/repository/repository.xml, reason: Connection timed out: connect"
Earlier android sdk and adt plugin is not available; latest android sdk and adt plugin is not capable.
Many thanks for help on this.
Start Here: http://developer.android.com/sdk/eclipse-adt.html
Head over to the installing URL: http://developer.android.com/sdk/eclipse-adt.html#installing
Look at the path for the download: http://dl.google.com/android/ADT-10.0.1.zip
Substitute the version you want in that link:
ADT 10.0.1: http://dl.google.com/android/ADT-10.0.1.zip
ADT 10.0.0: http://dl.google.com/android/ADT-10.0.0.zip
ADT 9.0.0 (Dead Link): http://dl.google.com/android/ADT-9.0.0.zip
ADT 9.0.0: http://dl.google.com/android/ADT_9.0.0.zip
ADT 8.0.1: http://dl.google.com/android/ADT-8.0.1.zip
ADT 8.0.0: http://dl.google.com/android/ADT-8.0.0.zip
ADT 0.9.9: http://dl.google.com/android/ADT-0.9.9.zip
ADT 0.9.8: http://dl.google.com/android/ADT-0.9.8.zip
ADT 0.9.7: http://dl.google.com/android/ADT-0.9.7.zip
ADT 0.9.6: http://dl.google.com/android/ADT-0.9.6.zip
ADT 0.9.5: http://dl.google.com/android/ADT-0.9.5.zip
ADT 0.9.4: http://dl.google.com/android/ADT-0.9.4.zip
Given that the 9.0.0 link swapped a '-' for a '_' in the path, it looks like some poor soul is doing these builds by hand. Too bad directory browsing isn't available for these. Anyway, hope this helps someone in the future.
You can change the url from https://dl-ssl.google.com/android/repository/repository.xml to http://dl-ssl.google.com/android/repository/repository.xml and try again.
You can check the project you are trying to import for settings which are not campatible with your Eclipse or SDK version.
The eclipse version should be fine. You should focus on the SDK version. many have had trouble on Windows with rev 10. You can install and use all the previous versions of Android SDK easily as long as the url you're using is correct.
I finally got all these click together already. It is actually due to the antivirus/firewall program. It is indeed nothing wrong with eclipse, adt plugin or android sdk. Just make sure that android executables is not blocked from running. Anyway, big thanks to those contributed to this post.

Categories

Resources