Hello,
I am using Delphi 12 to test my android app.
I get the following error in FMX.TMSFNCUtils
[DCC Error] FMX.TMSFNCUtils.pas(3995): E2157 Element 0 inaccessible - use 'Length' or 'SetLength'
Class function TTMSFNCUtils.GetMimeType(AFile: string): string;
var
e: string;
begin
e := ExtractFileExt(AFile);
e := LowerCase(Trim(e));
if (e <> '') and (e[{$IFDEF ZEROSTRINGINDEX}0{$ELSE}1{$ENDIF}] = '.') then
e := Copy(e, 2, Length(e) - 1);
Result := '';
if Assigned(FMimeTypes) then
Result := FMimeTypes.Values[e];
if Result = '' then
Result := 'application/octet-stream';
end;
We have already internally fixed this here. Please await the release which is aimed for end October. If you want to manually fix it, check the FMX.TMSFNCDefines.INC and add VER360
I am still have this problem, with last version installed
Create a new project and set to be compiled in android
add a reference in the main form to unit fmx.TMSUtils in 'uses ...'
We had some issues with the latest installers and needed to reupload them. But that should not have had effect on the inc file. We have checked this here, the latest installers should have them available. Did you download them recently?