Android Build in QT Creator will not install on phone
-
QT Creator 15
QT 6.8.3 (just upgraded from 6.8.1 and did not resolve)
Samsung Galaxy A35 5GThe application at one point installed (and ran) fine on my phone. After adding embedded RCC (resources) to the project, the application would no longer install on my phone. However I am not certain it is related to the resources.
I get the error (on my phone): "App not installed as package appears to be invalid."
I can inspect the .apk archive in windows and everything seems to be correct. I suspected it could have been an issue with temp files on the phone so we bought another phone (same model as mine) to test on so I could factory reset prior to installing an updated version, and I got the same error.The application is very simple, there is a main.cpp and a couple C++ classes, but almost the entirety of it is in QML. The only resources I added were some images.
So my question(s) are:
- Is there a way to get any more debug information from the phone installation process that would give me something to go on as to why it would be failing?
1a. Is the only way to do the above by installing on an emulator environment (was hoping to avoid having to set that all up and just use my phone for testing)... - are there any android-specific hooks I can (or need to) implement that would pertain to the install/uninstall issues I am seeing (is it something I need to do and/or am missing?)
- Is there a way to get any more debug information from the phone installation process that would give me something to go on as to why it would be failing?
-
the last thing I tried was self-signing the application, and it worked. hopefully this helps someone else who runs into this issue.
-
using kit: Android QT 6.8.3 Clang arm64-v8a
-
the last thing I tried was self-signing the application, and it worked. hopefully this helps someone else who runs into this issue.
-
@scottm1982 That's good. Then to help other readers you can Mark as Correct your own final post.
-