Open Martifan opened 3 years ago
I managed to run but right now they give another error: Project LoginWithFacebook.apk raised exception class EJNIException with message 'java.lang.NoClassDefFoundError: Failed resolution of: Landroid/support/v4/app/FragmentActivity;'. when this code executes:
procedure TgoFacebookSDK.ApplicationEventHandler(const Sender: TObject; const Msg: TMessage);
begin
Assert(Assigned(Msg));
Assert(Msg is TApplicationEventMessage);
case TApplicationEventMessage(Msg).Value.Event of
TApplicationEvent.WillBecomeForeground:
TJAppEventsLogger.JavaClass.activateApp(TAndroidHelper.Context.getApplicationContext);
TApplicationEvent.EnteredBackground:
TJAppEventsLogger.JavaClass.deactivateApp(TAndroidHelper.Context.getApplicationContext);
end;
end;
Hello everyone AddRJavaToClassesDex returns an error:
[Exec Error] The command "D:\Delphi\Isxodniki\Android\Gocha\NewVersion\Client\Enigma\Components\DelphiSocialFrameworks\trunk\LoginWithFacebook\Resources\Android\AddRJavaToClassesDex.bat D:\Delphi\Isxodniki\Android\Gocha\NewVersion\Client\Enigma\Components\DelphiSocialFrameworks\trunk\LoginWithFacebook Debug "C:\Users\Public\Documents\Embarcadero\Studio\21.0\CatalogRepository\AndroidSDK-2525-21.0.38860.1461\build-tools\29.0.3\Aapt.exe" "C:\Users\Public\Documents\Embarcadero\Studio\21.0\CatalogRepository\AndroidSDK-2525-21.0.38860.1461\platforms\android-29\android.jar" "C:\Users\Public\Documents\Embarcadero\Studio\21.0\CatalogRepository\AndroidSDK-2525-21.0.38860.1461\build-tools\29.0.3\dx.bat"" exited with code 1.
how to fix it? thanks in advance