Du musst die 32-Bit-Libraries in
library\lib\armeabi-v7a\
und die 64-Bit-Libraries in
library\lib\arm64-v8a\
ablegen. Wenn du wirklich nur 64-Bit builden willst, kannst du auf die 32-Bit-Libraries verzichten. Wenn du aber die aab-Datei bei Google hochladen möchtest, brauchst du beides.
Ich lade die Libraries folgendermaßen:
Delphi-Quellcode:
procedure TicTrainerF.initSSL();
{$IFNDEF IOS}
var help2: String;
{$ENDIF}
begin
if (not sslInited) then
begin
sslInited:=true;
{$IFDEF ANDROID}
IdOpenSSLSetLibPath(String.Empty);
{$ENDIF}
{$IFDEF IOS}
{$ELSE}
{$IFDEF MACOS}
IdOpenSSLSetCanLoadSymLinks(false);
IdOpenSSLSetLoadSymLinksFirst(false);
IdOpenSSLSetLibPath(TPath.GetDirectoryName(ParamStr(0)));
mlog.info('InitSSL from ' + TPath.GetDirectoryName(ParamStr(0)));
{$ENDIF}
{$ENDIF}
{$IFDEF MSWINDOWS}
IdOpenSSLSetLibPath(TPath.GetDirectoryName(ParamStr(0)));
mlog.info('InitSSL from ' + TPath.GetDirectoryName(ParamStr(0)));
SmtpMailFrom:=MESettings().MailAddr;
{$ENDIF}
IdSSLOpenSSLHeaders.Load();
{$IFDEF ANDROID}
help2:=IdSSLOpenSSLHeaders.WhichFailedToLoad();
if (length(help2) > 0) then
begin
IdOpenSSLSetLibPath(IncludeTrailingPathDelimiter(TPath.GetLibraryPath));
IdSSLOpenSSLHeaders.Load();
help2:=IdSSLOpenSSLHeaders.WhichFailedToLoad();
if (length(help2) > 0) then
begin
IdOpenSSLSetLibPath(IncludeTrailingPathDelimiter(TPath.GetDocumentsPath));
IdSSLOpenSSLHeaders.Load();
mlog.info('SSL-Version(3): ' + OpenSSLVersion);
help2:=IdSSLOpenSSLHeaders.WhichFailedToLoad();
if (length(help2) > 0) then
begin
mlog.info('SSL-Errors: ' + help2);
end;
end else begin
mlog.info('SSL-Version(2): ' + OpenSSLVersion);
end;
end else begin
mlog.info('SSL-Version(1): ' + OpenSSLVersion);
end;
{$ELSE}
mlog.info('SSL-Version: ' + OpenSSLVersion);
{$IFNDEF IOS}
help2:=IdSSLOpenSSLHeaders.WhichFailedToLoad();
if (length(help2) > 0) then
mlog.info('SSL-Errors : ' + help2);
{$ENDIF}
{$ENDIF}
end;
end;