Android app doesn't run
-
@mzimmers creating devices is for emulators. to connect via USB see https://t1p.de/ekkeManageDevices
wrote on 5 Jan 2024, 15:58 last edited by@ekkescorner oh, OK. I didn't realize that.
So...any idea why my device is showing as disconnected?
-
@ekkescorner oh, OK. I didn't realize that.
So...any idea why my device is showing as disconnected?
wrote on 5 Jan 2024, 15:59 last edited by JoeCFD 1 May 2024, 16:03@mzimmers click Devices and show the tabs. I am debugging my app for Android now and have debug build. If you are building release, then it is Release above Run button on the lower left corner of Qt Creator.
-
@mzimmers click Devices and show the tabs. I am debugging my app for Android now and have debug build. If you are building release, then it is Release above Run button on the lower left corner of Qt Creator.
-
@mzimmers is this device correct? Click the down arrow and you can see more.
If yes, check if the cable is on. I had this issue this morning. The cable was off. -
@JoeCFD it's the same device that worked for me last year. And it's indeed connected (I think it would have to be if it's auto-detected).
wrote on 5 Jan 2024, 16:20 last edited by JoeCFD 1 May 2024, 16:21@mzimmers Go to your computer and click this device to see if you are able to browse inside this device. For example, copy a file from this device to your computer. If yes, this means the device is connected to your computer. Otherwise, it is not connected.
-
@mzimmers Go to your computer and click this device to see if you are able to browse inside this device. For example, copy a file from this device to your computer. If yes, this means the device is connected to your computer. Otherwise, it is not connected.
-
@JoeCFD tried that, and it sure appears to be connected:
I'm starting to wonder if there's something wrong with the SDK that Creator downloaded for me.wrote on 5 Jan 2024, 16:33 last edited by JoeCFD 1 May 2024, 16:35@mzimmers yes, it is connected. Click the Android tab to see if anything is not set properly. I am now working with a Galaxy Tab A as well and do not have issues. Do you need to enable debugging in your Tablet? I remember you set it.
-
@mzimmers yes, it is connected. Click the Android tab to see if anything is not set properly. I am now working with a Galaxy Tab A as well and do not have issues. Do you need to enable debugging in your Tablet? I remember you set it.
wrote on 5 Jan 2024, 16:40 last edited by@JoeCFD bingo. Now my device shows as ready to use.
Unfortunately, I'm now back to my original error:
Activity Manager threw the error: Error type 3 Error: Activity class {org.qtproject.example.weatherinfo/org.qtproject.qt.android.bindings.QtActivity} does not exist.
And, to @JKSH's suggestion, this is without modifying any of the files in my android directory.
-
@JoeCFD bingo. Now my device shows as ready to use.
Unfortunately, I'm now back to my original error:
Activity Manager threw the error: Error type 3 Error: Activity class {org.qtproject.example.weatherinfo/org.qtproject.qt.android.bindings.QtActivity} does not exist.
And, to @JKSH's suggestion, this is without modifying any of the files in my android directory.
How do these settings compare with yours?
-
@mzimmers I have JDK 11 and yours is 17. 17 is for Android 14. I do not think Galaxy has 14 now. Check the Android version in your tablet. Mine is 13.
-
@JoeCFD mine appears to be 11.
When I change my JDK to 11, I get the following errors:
Do I need to dig up an earlier version of the SDK now? The Android Studio download page seems to have only the latest versions. -
@JoeCFD mine appears to be 11.
When I change my JDK to 11, I get the following errors:
Do I need to dig up an earlier version of the SDK now? The Android Studio download page seems to have only the latest versions.@mzimmers said in Android app doesn't run:
Do I need to dig up an earlier version of the SDK now?
That's a bit tricky:
- The Latest version of the SDK Command-Line tools (v11+) requires JDK 17 now. In contrast, v10 of the Tools can work with JDK 11.
- Qt Creator expects you to use the SDK Manager to install the "Latest" version of the tools. So if you've upgrade those tools, you're expected to use JDK 17 too.
And, to @JKSH's suggestion, this is without modifying any of the files in my android directory.
Hmm... that's weird. Sorry, I don't know if it's related to JDK 17 or not. (I haven't upgraded so I'm still using JDK 11 + SDK Command-Line Tools v10)
-
@mzimmers said in Android app doesn't run:
Do I need to dig up an earlier version of the SDK now?
That's a bit tricky:
- The Latest version of the SDK Command-Line tools (v11+) requires JDK 17 now. In contrast, v10 of the Tools can work with JDK 11.
- Qt Creator expects you to use the SDK Manager to install the "Latest" version of the tools. So if you've upgrade those tools, you're expected to use JDK 17 too.
And, to @JKSH's suggestion, this is without modifying any of the files in my android directory.
Hmm... that's weird. Sorry, I don't know if it's related to JDK 17 or not. (I haven't upgraded so I'm still using JDK 11 + SDK Command-Line Tools v10)
wrote on 6 Jan 2024, 19:53 last edited by mzimmers 1 Jun 2024, 19:57This post is deleted! -
wrote on 6 Jan 2024, 22:19 last edited by
-
Using Android Studio's SDK Manager, I was able to install Android 13.0 (Tiramisu), and command-line tools 10:
and now my Android settings in Creator are totally whack:
I'm going around in circles here. Any ideas are appreciated. -
@mzimmers the SDKs from Android SDK Manager are not in your kit yet. Click SDK Manager button to add them.
-
@JoeCFD it doesn't work - there's nothing in the package window to add when I've selected JDK 11.
@mzimmers I'm using JDK 17 for Qt 5.15.15 and 6.6
-
Using Android Studio's SDK Manager, I was able to install Android 13.0 (Tiramisu), and command-line tools 10:
and now my Android settings in Creator are totally whack:
I'm going around in circles here. Any ideas are appreciated.
42/87