Android app doesn't run
-
@JKSH said in Android app doesn't run:
Be warned, that manifest editor is badly broken: https://bugreports.qt.io/browse/QTCREATORBUG-27119 I recommend that you don't touch it -- even the act of opening that editor is enough to corrupt the manifest file in some cases.
also have noticed that opening with Manifest Editor sometimes changes the content. But in my cases it was only a reformatting / reordering and nothing destroyed. (QtC 12.0.1)
BTW: I'm getting best experiences this way:
- Update Templates
- check changes (using git)
- add / replace with my settings
this way I'm always getting the newest recommended values
-
@ekkescorner said in Android app doesn't run:
check changes (using git)
Could you elaborate on this? Changes to what, exactly?
-
@mzimmers see here what I did while updating from 5.15 to 6.6:
https://t1p.de/ekkeAndroidTemplates66
this will give you the idea how I'm doing this -
@JKSH thanks for the warning about the manifest editor -- it looks like TQC has painted itself into a corner on this one.
I was going to try your suggestion, but now I have a different problem: my Android device shows as "disconnected" and I can't figure out what to do about this.
-
@ekkescorner that's a great page. I'm using 6.5.3; do you think your suggestions will work with this version?
-
@mzimmers will be similar, but not the same. per ex. the Qt FileProvider only exists in 6.6+
-
@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
-
@ekkescorner oh, OK. I didn't realize that.
So...any idea why my device is showing as disconnected?
-
@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 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?