Konuyu Oyla:
  • Derecelendirme: 3/5 - 2 oy
  • 1
  • 2
  • 3
  • 4
  • 5
Android 11
#1
Delphi 10.3 teki - android10 da ve alt sürümlerde sorunsuz çalışan uygulamam android11 de çalışmıyor uygulama direk kapanıyor targetSdkVersion la ilgili sanırım 30 olması gerekiyor ama sdk güncellememe rağmen 30 olmuyor.
Cevapla
#2
And 11 hiç denemedim. Fakat izinlerle alakalı bir durun olabilir mi diye düşündüm?
// Bilgi paylaştıkça çoğalır.. 

Cevapla
#3
Merhaba,
Öncelikle resmi açıklama ve bilgilere bakmak gerek ;
http://docwiki.embarcadero.com/PlatformS...ite_note-6

Ayrıca buraya da ;
https://www.delphipraxis.net/205860-delp...-11-a.html

SDK Manager üzerinde android 11 SDK yükledikten sonra da boş bir projeyi derleyip android 11 sürümünde çalıştırmayı deneyin. Çalışacak mı ? Çalışır ise sonra kendi projenize yönelin.
Cevapla
#4
(05-02-2021, Saat: 16:34)mcuyan Adlı Kullanıcıdan Alıntı: And 11 hiç denemedim. Fakat izinlerle alakalı bir durun olabilir mi diye düşündüm?

izinlerle alakalı değil onları denedik
Cevapla
#5
(05-02-2021, Saat: 18:24)Mr.Developer Adlı Kullanıcıdan Alıntı: Merhaba,
Öncelikle resmi açıklama ve bilgilere bakmak gerek ;
http://docwiki.embarcadero.com/PlatformS...ite_note-6

Ayrıca buraya da ;
https://www.delphipraxis.net/205860-delp...-11-a.html

SDK Manager üzerinde android 11 SDK yükledikten sonra da boş bir projeyi derleyip android 11 sürümünde çalıştırmayı deneyin. Çalışacak mı ? Çalışır ise sonra kendi projenize yönelin.

Aynen, boş proje ile deneyin.
Cevapla
#6
(06-02-2021, Saat: 10:24)engerex Adlı Kullanıcıdan Alıntı:
(05-02-2021, Saat: 18:24)Mr.Developer Adlı Kullanıcıdan Alıntı: Merhaba,
Öncelikle resmi açıklama ve bilgilere bakmak gerek ;
http://docwiki.embarcadero.com/PlatformS...ite_note-6

Ayrıca buraya da ;
https://www.delphipraxis.net/205860-delp...-11-a.html

SDK Manager üzerinde android 11 SDK yükledikten sonra da boş bir projeyi derleyip android 11 sürümünde çalıştırmayı deneyin. Çalışacak mı ? Çalışır ise sonra kendi projenize yönelin.

Aynen, boş proje ile deneyin.

boş bir projede açıp denedim sdk yı güncelledim ama  bişey farketmedi belkide 10.3  bunu desteklemiyor olabilirmi kendi sayfasındada bununla ilgili bir bilgi göremedim
Cevapla
#7
Şuradaki çözümü uygularsanız sorunu halledeceğinizi düşünüyorum.
Herhangi bir basit problem, hakkında yeterince toplantı yapılarak, çözümsüz hale getirilebilir.
https://play.google.com/store/apps/developer?id=ONGUN
Cevapla
#8
(08-02-2021, Saat: 12:34)savasabd Adlı Kullanıcıdan Alıntı: Şuradaki çözümü uygularsanız sorunu halledeceğinizi düşünüyorum.

Merhaba, Aynı sorunla karşılaştım. Delphi 10.3.3 kuruluydu. Ne yaptimsa da olmadi boş proje dahi çalışmadı. 10.4.2 trial yükledim. Api 29, NDK 21 yüklü ancak yine de sorun devam ediyor. Bahsettiğiniz çözüm linkinden de giriş sabah saatlerinden beri giriş yapamıyorum yeni kayitta yaptirmiyor. Siteye giriş yapabilen veya çözüm bulabilen var mi? Teşekkürler.
Cevapla
#9
Site yönetimi açısından bir sıkıntı olur mu bilmiyorum ama buyrun:


The reported issue (a segmentation fault raised after an attempt to call the 'u_strFromUTF8WithSub' ICU function) has not been reproduced before due to the fact that, an application that has the value of the 'targetSdkVersion' manifest attribute lesser than/equal to '28' runs on 'compatibility mode' on an 'Android 10.0' device [1]:
Alıntı:Also for app compatibility, the linker redirects absolute paths to ICU libraries in dlopen() calls, i.e. 'dlopen("/system/lib/libicuuc.so", ...)' and 'dlopen("/system/lib/libicui18n.so", ...)', redirect to the corresponding libraries in '/apex/com.android.runtime/lib/' for apps with 'targetSdkVersion < 29'.
After changing the value of the 'targetSdkVersion' attribute to '29', an application no longer runs on the mentioned 'compatibility mode' and, therefore, the 'dynamic linker' fails to load the 'ICU' libraries (these libraries are used in the implementation of helper methods for string handling). There is an important axiom that is valid for devices running an Android version greater than/equal to '5.0':
Alıntı:Calls to the 'dlopen' function should pass as first parameter a 'library name' instead of a 'library absolute path'.
BUG FIX
Please the bug provided here is aimed to update the uses of the 'dlopen' function in the 'ICU.inc' file (it is included into the 'System.pas' one) according to the above Android axiom. These are the steps needed to address the reported issue:
  • Open the 'Windows Explorer' application.

  • On the 'Windows Explorer' application...
    • Navigate to the 'C:\Program Files (x86)\Embarcadero\Studio\20.0\source' folder.
    • Copy the files from the 'missing_source_files.zip' attachment [1] to the current folder.
    • Navigate to the 'C:\Program Files (x86)\Embarcadero\Studio\20.0\source\rtl\sys' folder.
    • Open the 'ICU.inc' file in a text editor application (please backup the original version of the 'ICU.inc' file for safety purposes).
    • On the text editor application...
      • Change the definition of the 'InitICU' global function:
        From
        function InitICU: Boolean;
         
        ...
        
        begin
        ICUVersionNumber := -1;
        Result := False;
        {$IFDEF MACOS}
        HICUUC := dlopen('/usr/lib/libicucore.dylib', RTLD_LAZY);
        HICUI18N := HICUUC;
        {$ELSEIF defined(LINUX)}
        HICUUC := OpenICU_Lib('libicuuc.so');
        HICUI18N := OpenICU_Lib('libicui18n.so');
        {$ELSEIF defined(ANDROID32)}
        HICUUC := dlopen('/system/lib/libicuuc.so', RTLD_LAZY);
        HICUI18N := dlopen('/system/lib/libicui18n.so', RTLD_LAZY);
        {$ELSE defined(ANDROID64)}
        HICUUC := dlopen('/system/lib64/libicuuc.so', RTLD_LAZY);
        HICUI18N := dlopen('/system/lib64/libicui18n.so', RTLD_LAZY);
        {$ENDIF}
        
        ...
        
        end;
        

        To
        function InitICU: Boolean; ... begin  ICUVersionNumber := -1;  Result := False;{$IFDEF MACOS}  HICUUC := dlopen('/usr/lib/libicucore.dylib', RTLD_LAZY);  HICUI18N := HICUUC;{$ELSEIF defined(LINUX)}  HICUUC := OpenICU_Lib('libicuuc.so');  HICUI18N := OpenICU_Lib('libicui18n.so');{$ELSE defined(ANDROID)}  HICUUC := dlopen('libicuuc.so', RTLD_LAZY);  HICUI18N := dlopen('libicui18n.so', RTLD_LAZY);{$ENDIF} ... end;
      • Save the changes done to the 'ICU.inc' file.
    • Switch back to the 'Windows Explorer' application.
    • Navigate to the '%USERPROFILE%' folder.
    • Copy the 'build.bat' file from the 'build_script.zip' attachment [2] to the current folder.
      • NOTE: Running that script causes the build artifacts from the compilation of the 'System' unit to be created in the '%USERPROFILE%\build' folder. Please use the 'OUTPUT_PATH' variable to change the path to those build artifacts. The changes done to the 'ICU.inc' file are not supposed to break the DCU compatibility of the 'System' unit and, therefore, the only build artifact that interests here is the 'System.o' file.
    • Run the 'build.bat' file.
    • Switch back to the 'Windows Explorer' application.
    • Navigate to the 'C:\Program Files (x86)\Embarcadero\Studio\20.0\lib\android\debug' folder.
    • Copy the 'System.o' file from the '%USERPROFILE%\build\android\debug' folder to the current folder (please backup the original version of the 'System.o' file for safety purposes).
    • Navigate to the 'C:\Program Files (x86)\Embarcadero\Studio\20.0\lib\android\release' folder.
    • Copy the 'System.o' file from the '%USERPROFILE%\build\android\release' folder to the current folder (please backup the original version of the 'System.o' file for safety purposes).
    • Navigate to the 'C:\Program Files (x86)\Embarcadero\Studio\20.0\lib\android64\debug' folder.
    • Copy the 'System.o' file from the '%USERPROFILE%\build\android64\debug' folder to the current folder (please backup the original version of the 'System.o' file for safety purposes).
    • Navigate to the 'C:\Program Files (x86)\Embarcadero\Studio\20.0\lib\android64\release' folder.
    • Copy the 'System.o' file from the '%USERPROFILE%\build\android64\release' folder to the current folder (please backup the original version of the 'System.o' file for safety purposes).

Please let me know if the mentioned steps are not addressing the reported issue.

Thankfully,
Horácio Filho


Yukarda bahsettiği dosyalar ekte.


Ek Dosyalar
.zip   gerekli dosyalar.zip (Dosya Boyutu: 7,98 KB / İndirme Sayısı: 68)
Herhangi bir basit problem, hakkında yeterince toplantı yapılarak, çözümsüz hale getirilebilir.
https://play.google.com/store/apps/developer?id=ONGUN
Cevapla
#10
(29-03-2021, Saat: 22:06)savasabd Adlı Kullanıcıdan Alıntı: Site yönetimi açısından bir sıkıntı olur mu bilmiyorum ama buyrun:




Thankfully,
Horácio Filho[/font]


Yukarda bahsettiği dosyalar ekte.
Hocam çok teşekkür ederim düşünceli çözümünüz için ellerinize sağlık paylaştığınız için ek için. Sağolun.
Cevapla


Konu ile Alakalı Benzer Konular
Konular Yazar Yorumlar Okunma Son Yorum
  Android Uygulama İkonu ARM 2 400 11-11-2025, Saat: 12:15
Son Yorum: ARM
  Android SDK kajmerantime 1 385 28-10-2025, Saat: 14:53
Son Yorum: cinarbil
  Android El Terminali Barkod Okuyucu Verisi tuna 0 334 17-10-2025, Saat: 01:07
Son Yorum: tuna
  Android işlem öneriliyor uyarısı! Coban 9 1.863 07-08-2025, Saat: 12:07
Son Yorum: RAD Coder
  FMX Android Adaptive Icons kullanabilir miyiz? egeven 1 2.156 30-06-2025, Saat: 21:46
Son Yorum: emozgun



Konuyu Okuyanlar: