[Interest] Broken Android gdb debugging ?

Edward Sutton edward.sutton at subsite.com
Mon Apr 25 23:51:16 CEST 2016


After restore to r10e NDK, the debug problem was an Android 6.0 issue INSTALL_FAILED_PERMISSION_MODEL_DOWNGRADE.

Using adb to uninstall the package resolved. Qt Android deploy/debug is good again.  Thank you for your help Andre.


Installing Android package to device.
Running command "/Users/edward3/Library/Android/sdk/platform-tools/adb -s 08f513c6 install -r /Users/edward3/Documents/projects/tsr-mobile-google-analytics/build-tsr-Android_for_armeabi_v7a_GCC_4_9_Qt_5_6_0-Debug/android-build//build/outputs/apk/android-build-debug.apk"
pkg: /data/local/tmp/android-build-debug.apk
Failure [INSTALL_FAILED_PERMISSION_MODEL_DOWNGRADE]
Android package built successfully in 8.406 ms.
-- It can now be run from the selected device/emulator.
-- File: /Users/edward3/Documents/projects/tsr-mobile-google-analytics/build-tsr-Android_for_armeabi_v7a_GCC_4_9_Qt_5_6_0-Debug/android-build//build/outputs/apk/android-build-debug.apk

http://stackoverflow.com/questions/34791561/failure-install-failed-permission-model-downgrade

-Ed

On Apr 25, 2016, at 4:32 PM, Edward Sutton <edward.sutton at subsite.com<mailto:edward.sutton at subsite.com>> wrote:

Sorry, I went back to a sample app and now I can debug again.  I think reverting to r10e fixed the main problem.

It must have an Android Manifest or other issue.  Something I broke when trying to add support for Google Analytics.

Thank you for your time and other things to test.

-Ed


On Apr 25, 2016, at 4:21 PM, André Pönitz <apoenitz at t-online.de<mailto:apoenitz at t-online.de>> wrote:

On Mon, Apr 25, 2016 at 09:02:13PM +0000, Edward Sutton wrote:
Thank you Andre.

After rolling back to r10E I still cannot deploy and debug.  It no
longer hangs at the deploy stage.  This is an improvement.

The Android Kit GDB Server is still pointing to the Android Studio
ndk-bundle even thought it has been removed.

I cannot seem to fix this?

I can't check right now.

Things to test:

If you have "Automatically create kits" checked in Qt Creator's
Android settings, remove and re-add the Qt version. This should
remove and re-add corresponding kits.

If that does not help and there's still an auto-detected kit with
some wrong settings, clone that kit, and replace the wrong setting
with the correct one. In case of compiler or debugger you might
need to add (and 'Apply'...) entries on the compiler/debugger pages
first. Then use this fixed kit.

Andre'


This email and any files transmitted with it from The Charles Machine Works, Inc. are confidential and intended solely for the use of the individual or entity to which they are addressed. If you have received this email in error please notify the sender. Our company accepts no liability for the contents of this email, or for the consequences of any actions taken on the basis of the information provided, unless that information is subsequently confirmed in writing. Please note that any views or opinions presented in this email are solely those of the author and do not necessarily represent those of the company. Finally, the recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email.
_______________________________________________
Interest mailing list
Interest at qt-project.org<mailto:Interest at qt-project.org>
https://urldefense.proofpoint.com/v2/url?u=http-3A__lists.qt-2Dproject.org_mailman_listinfo_interest&d=CwIGaQ&c=G4BpsyPyB19LB50bn2swXw&r=cAG2c-SQES5P2qb8IW-uwnBOCX_f2qYJIlzenFnoHUc&m=2Ah1mksuo2wh8_M0Q7D3xQJUjW8puTMEU2RmmS0RvLg&s=pAcN6kEGHae3Ytb0L5mx58bOysxC9p05m4ojGGmYW6M&e=

This email and any files transmitted with it from The Charles Machine Works, Inc. are confidential and intended solely for the use of the individual or entity to which they are addressed. If you have received this email in error please notify the sender. Our company accepts no liability for the contents of this email, or for the consequences of any actions taken on the basis of the information provided, unless that information is subsequently confirmed in writing. Please note that any views or opinions presented in this email are solely those of the author and do not necessarily represent those of the company. Finally, the recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20160425/00e18d7f/attachment.html>


More information about the Interest mailing list