Image attached.
The error occurs outside the app, in the batch file called "android\build_debug_apk.bat". Running from Lazarus makes no difference.
Simply run the app and press the manual construction buttons and you will see the error.
Te error occurs here (file does not exist):
procedure TfrmApkManager.btnCreateApkFileClick(Sender: TObject);
var
_targetfilename:string;
begin
if FProjectDir = '' then begin
SelectDirectoryDialog1.Title := 'Select project directory';
if not SelectDirectoryDialog1.Execute then exit;
FProjectDir := SelectDirectoryDialog1.FileName + PathDelim;
end;
_targetfilename:=FProjectDir + 'android\bin\'+FProjectName+'.apk';
RunScript(FProjectDir + 'android\build_debug_apk.bat', False);
// Now the error occurs <<<<<<<<<<<<<<<<<<<<
if not FileExistsUTF8(_targetfilename) then begin
MessageDlg(format('Could not build the Android apk <%s>. See batch file output to analyze the problem.',[_targetfilename]), mtWarning, [mbOK], 0);
// The file does not exist <<<<<<<<<<<<<<<<<
exit;
end;
btnInstallAPK.Enabled:=true;
if pgcMain.ActivePage <> tabManual then Exit;
BringToFront;
btnInstallAPK.SetFocus;
end;
The only APK file which exists in this folder is "project1-unsigned.apk" in BIN subfolder.