Android app doesn't run
-
@mzimmers said in Android app doesn't run:
my Android device shows as "disconnected"
connected via wifi or via usb cable ?
-
-
@ekkescorner USB cable. I deleted that device, and am trying to create a new one, but it keeps trying to make an emulator, not a "real" Android device.
-
@mzimmers creating devices is for emulators. to connect via USB see https://t1p.de/ekkeManageDevices
-
@JoeCFD interesting -- I thought I had deleted that device, but it still shows up (and appears to be selected):
I'm not sure what you are referring to with "Debug above Run button." I'm only trying to build a release version. -
@ekkescorner oh, OK. I didn't realize that.
So...any idea why my device is showing as disconnected?
-
@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 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 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.
-
@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.
-
-
@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)
37/87