Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Die Delphi-IDE (https://www.delphipraxis.net/62-die-delphi-ide/)
-   -   Android SDK 30: 10.4.2 Fehler "INSTALL_PARSE_FAILED_NO_CERTIFICATES" (https://www.delphipraxis.net/209923-android-sdk-30-10-4-2-fehler-install_parse_failed_no_certificates.html)

amigage 8. Feb 2022 10:01

Android SDK 30: 10.4.2 Fehler "INSTALL_PARSE_FAILED_NO_CERTIFICATES"
 
Hallo,

ich wollte schnell ein Update meiner App bereitstellen. Laut Play Store soll man aber jetzt die SDK Version auf 30 setzen. Wenn ich dies mache erhalte ich in 10.4.2 folgende Fehlermeldung:
"Failure [INSTALL_PARSE_FAILED_NO_CERTIFICATES] Scanning failed: No signature found in paackage of version 2 or newer for package"

Kann man das in 10.4.2 irgendwie umstellen, oder braucht man dazu zwingend Alexandria 11? Das habe ich zwar, wollte es wegen der sicheren Dateifreigabe vorerst noch nicht verwenden, da ich einige Datei-Funktionen verwende, die ich umstellen müsste. Das geht aber in der Kürze der Zeit leider nicht.

Also ich würde mich freuen, wenn ich das noch mit 10.4.2 kompilieren könnte.

Danke.

zeras 1. Aug 2022 11:01

AW: Android SDK 30: 10.4.2 Fehler "INSTALL_PARSE_FAILED_NO_CERTIFICATES"
 
Gibt es hier eine Lösung?
Ich habe das gleiche Problem mit 10.4.2.

TurboMagic 1. Aug 2022 20:05

AW: Android SDK 30: 10.4.2 Fehler "INSTALL_PARSE_FAILED_NO_CERTIFICATES"
 
Was bitte hast du wo auf SDK30 gestellt?

zeras 2. Aug 2022 05:47

AW: Android SDK 30: 10.4.2 Fehler "INSTALL_PARSE_FAILED_NO_CERTIFICATES"
 
Liste der Anhänge anzeigen (Anzahl: 1)
Zitat:

Zitat von TurboMagic (Beitrag 1509624)
Was bitte hast du wo auf SDK30 gestellt?

Mir geht es mehr um die Fehlermeldung, die kommt, wenn ich eine APP über USB auf mein Handy bringen will.
Das Handy hat Android 12 drauf.
Bei einem Tablett mit Android 6 geht das.

Rollo62 2. Aug 2022 06:36

AW: Android SDK 30: 10.4.2 Fehler "INSTALL_PARSE_FAILED_NO_CERTIFICATES"
 
Liste der Anhänge anzeigen (Anzahl: 1)
Wenn ich Dein Template mit dem hier unter D11.1 vergleiuche sieht es so aus:
Anhang 55271

Da gibt es noch mehr Unterschiede als "nur" die 30.

Ich würde das mal sichern und dann Löschen, damit die IDE ein ganz Neues anlegt und dann nochmal die Änderungen reinbauen.

EDIT:
Bezüglich requestLegacyExternalStorage:
Soweit mir bekannt kann man das drinlassen, es wird bei größeren SDK einfach ignoriert.
https://stackoverflow.com/questions/...ending#tab-top

Zitat:

UPDATE, to clarify the doubts and confusions shown by some developers in the comments:

- If using the requestLegacyExternalStorage flag in Android 10 (API 29) then
request the WRITE_EXTERNAL_STORAGE permission as usual.

- The flag requestLegacyExternalStorage does nothing in Android 11 (API 30), it is completely ignored,
and there is not workaround for it.


- WRITE_EXTERNAL_STORAGE does not give any privileges in Android 11 (API 30), it does nothing at all,
therefore in API 11 you need to set the maxSdkVersion to 29.

- If in Android 10 (API 29) you are also not using requestLegacyExternalStorage then set maxSdkVersion to 28
instead of 29.

- Starting in Android 11 (API 30), the older File API can again be used but "only" when accessing the public "shared
storage" folders (DCIM, Music, etc.), or your app "private" directory.
For other locations the DocumentFile API is required.

- Consider that the File API is now much slower in Android 11 (API 30), because has been refactored becoming
essentially a wrapper. This is to enforce its usage just to the allowed locations. So, is no longer a fast system file
API, is just a wrapper that internally delegates the work to the MediaStore. When using the File API in Android 11
or above you should consider the performance penalty hit, as according to the Android team it will be 2 to 3 times
slower than if accessing directly the MediaStore.


Alle Zeitangaben in WEZ +1. Es ist jetzt 19:20 Uhr.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz