I have installed:
Qt 5.14.1 for msvc 2017 & Android installed to c:\Qt\Qt5.14.1\:
Compilers available in Qt Creator:
Kits available:
JDK-13.0.2 installed to c:\Program Files\Java\jdk-13.0.2
Android Studio 3.6.1 g:\Android\Android Studio\ with SDKs installed to g:\Android\SDK as shown below:
SDK tools:
Now what I see in Qt Creator:
How can I fix these errors? Why did they arise?
Edit: I've installed JDK 8 instead of 13. But still have the same red crosses.
Also in the topic 'Platform SDK installed' red X Adding Android SDK Tools in Qt Creator says that SDK 25.2.5 has to be installed, but how can I install SDK 25.2.5 ? Android Studio doesn't have this version available in the System Settings.
Edit 2: I've downloaded the archive "Android SDK Tools 25.2.5" from the link https://androidsdkmanager.azurewebsites.net/SDKTools . As I understand, this archive contains "SDK tools 25.2.5" + "some Android package manager". Then I:
Unpack the archive to the folder g:\Android\SDK\tools\. What the folder actually contains:
ant\
apps\
bin\
lib\
lib64\
proguard\
qemu\
support\
templates\
android.bat
ddms.bat
draw9patch.bat
hierarchyviewer.bat
jobb.bat
lint.bat
monitor.bat
monkeyrunner.bat
traceview.bat
uiautomatorviewer.bat
emulator.exe
emulator-arm.exe
emulator-check.exe
emulator-crash-service.exe
emulator-mips.exe
emulator-x86.exe
emulator64-crash-service.exe
mksdcard.exe
source.properties
NOTICE.txt
package.xml
Run android.bat from the folder and in the window that appears, I see that now I have SDK 25.2.5 installed:
And in Qt Creator Android Settings are almost ok now:
You can check these links that may help you. Although, its looks like the problem is the JDK version, you should test with JDK 8, instead the latest release.
https://wiki.qt.io/Qt_for_Android_known_issues
https://forum.qt.io/topic/90310/platform-sdk-installed-red-x-adding-android-sdk-tools-in-qt-creator/20
Related
When I tried to build QtFireExample with my QtCreator, failed with below error message.
The installed SDK tools version (26.1.1) does not include Gradle
scripts. The minimum Qt version required for Gradle build to work is
5.9.0/5.6.3 Error while building/deploying project QtFirebaseExample (kit: Android) When executing step "Build Android APK"
My android studio is 3.2.1. And SDK tools 26.1 is also installed.
qt version is also above 5.9.0
What I did mistake?
❯ qmake --version
QMake version 3.1
Using Qt version 5.12.0 in /usr/local/Cellar/qt/5.12.0/lib
There's more steps to follow before you can deploy your first Android app using QtCreator. Installing SDK tools is not enough. Here is what I did, I'm using Windows, but hopefully the steps are the same under Ubuntu.
Install QtCreator using the link provided by Hitokage, include QtCreator (I got version 4.8.0), and Qt 5.12.0 binaries for your platform + needed Android (armv7, x86...)
Get JDK 1.8.X.X
Get NDK r18b (or a more recent version)
Get SDK tools 26.1.1 (what you already did)
SDK tools itself is not enough, some SDK modules must be installed, from SDK tools folder, run:
sdkmanager platform-tools
sdkmanager build-tools;28.0.3
sdkmanager extras;google;usb_driver
sdkmanager platforms;android-22 (which is enough for me, you may want something different based on your target Android devices)
Then open QtCreator, Go to "Mobile devices" (my french version calls it "Appareils mobiles"), then make it point to installed JDK, SDK, NDK, clic Apply and then kits should be automtically created. Now you are ready to compile and deploy and Android app for API 22.
Note that gradle is automatically downloaded by QtCreator first time you'll request a deployment.
I have tried downgrading the SDK Tools which didn't work. What worked for me however was downloading the official QT installer (working on Linux), installed QT to a new directory along with ARM64-v8a and ARMv7 (which probably solved the problem, I didn't have that in the package I installed from Arch repo). Now I can (after allowing the developer and debug mode on the device) deploy the app on the phone.
EDIT: Then chose one of those auto-detected kits.
After updating Android Studio to 2.0 l am getting this error unable to obtain debug bridge and Android Device Monitor does not open. Anyone faced this error before?
I just open sdk manager and installed all android sdk tools and done.
Check whether you need to install "Android Sdk Platform Tools" in the Android SDK Manager.
Somehow, after installing Android Studio from the bundle (for Linux) I lacked the "platform-tools" directory in "Android/Sdk", where the adb executable resides. Installing the platform tools helped. It was easier to find in the standalone sdk manager.
This is because you deleted the adb.exe (it might be your antivirus who deleted it),that resided in the platform tools in the android sdk folder.
What you need to do is to delete the current platform-tools in the sdk manager program and re install it all over again.
I installed the right sdk version that matched my virtual device android version
I am also running the same problem when update android studio from 1.4 to 1.5 stable version. When I run adb command from terminal then i found following error :
bash: ./adb: cannot execute binary file: Exec format error
After R&d I found that this error occurs due to unsupported architecture. In my case:
I am using ubuntu14.04 LTS 32-bit. I observed that after updation, lib folder under platform-tools converted to lib64. I think above error occurs due to 32-bit architecture because after updation 32-bit support removed.
For permanent solution upgrade you system to 64-bit architecture.
Quick solution is to replace the updated platform-tools folder with old one that containing the lib folder instead of lib64.
I think 32-bit architecture support for android development stopped by google for future releases. But I am not sure.
I am phase these error when updating Android-SDK Plateform-Tools 23.1 in Android SDK Manager
i am worked on ubuntu 14.04 [32bit] that is not supporting with Plateform-Tools 23.1 it is only supporting in 64bit Operating System architecture that's why downgrade my Plateform-tools 23.0
it works perfect...!!!
Go to: Android Studio Settings > Appearance & Behavior > System Settings > Android SDK:
If path for SDK are text in red, change to your SDK folder and click ***APPLY***
Open the standalone SDK manager and install the platform tools package.
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
I'm having trouble exporting my first APK in eclipse. When I click on finish, I get the message: No build tools installed in the SDK.
I've googled the problem but all the results say that i have to install Android SDK Tools, but I have it and it's been updated (22.0.1).
Any ideas?
Thanks!
EDIT:
I have ALL the packages installed but still the same error.
Ubuntu 12.04
Eclipse 3.8.0
JDK 7
From version 22 forward the build tools is a separate package. Open then Android SDK Manager and check Android SDK Build-tools and click install. The package will download and you'll be able to export/build.
If eclipse is pointing to the wrong Android SDK it won't find the build tools. If you're sure you installed the right build tools, it may be that eclipse is pointed to the wrong directory. So if you're on windows, in eclipse, goto Window -> Preferences -> Android, and check the field in "SDK Location" eclipse is looking for the build tools in a subdirectory of that folder. Goto that folder and run the SDK Tools.exe and install everything in that GUI and it should work. Otherwise, change the path to your other SDK installation.
Here's a kinda same tutorial for Mac:
Add SDK to eclipse and no Target
I am running Windows Vista and have an error in my Android application which is presented by Eclipse as:
The container 'Android Dependencies' references non existing library 'C:\Program Files\Android\android-sdk\tools\support\annotations.jar'
CornBoyzTutorial Build Path Problem. I go to the 'C:\Program Files\Android\android-sdk\tools` folder to see that there is no support folder. The beginning of Eclipse presented me with This version of ADT requires Android SDK Tools 17 or above. Current revision is 16. Please update your DDK Tools to the latest version.
I have run Eclipse as Administrator and go to the Android SDK manager, to see that there is an update for the Rev.16 Android SDK Tools to Rev 19. I press for the installation of the packages and get the window message that the SDK Manager:failed to install, a folder failed to be moved, On Windows this typically means that a program is using that folder.. (eg anti-virus), ..close any running programs taht may be accessing the directory C:\Program Files\Android\android-sdk\tools`, When ready ... try again.
The console message is:
[2012-05-06 13:35:20 - SDK Manager] Failed to rename directory C:\Program Files\Android\android-sdk\tools to C:\Program Files\Android\android-sdk\temp\ToolPackage.old01.
The Android SDK Manager Log message at the end is:
Done loading packages.
Preparing to install archives
Downloading Android SDK Tools, revision 19
Installing Android SDK Tools, revision 19
Failed to rename directory C:\Program Files\Android\android-sdk\tools to C:\Program Files\Android\android-sdk\temp\ToolPackage.old01.
Done. Nothing was installed.
I have all anti-virus software turned off and no programs accessing this directory. I also ran the SDK manager from the Android folder directly as Administrator with the same error. I have also tried restarting Windows. Previous times when I update never showed this problem.
the Android SDK manager (it's an application you can run by itself, Eclipse is only framing it) is itself located in the tools directory (clarification: I looked on the linux version, but would guess it's the same on windows).
You could try to copy it elsewhere and run that, or manually download and unzip the tools package, but it might be simplest to just re-install the latest SDK from scratch.