Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

App crashes in Android! #565

Open
ChristophSchmid05 opened this issue Feb 20, 2022 · 0 comments
Open

App crashes in Android! #565

ChristophSchmid05 opened this issue Feb 20, 2022 · 0 comments

Comments

@ChristophSchmid05
Copy link

Hi guys
I'm facing the following problem.
I installed the plugin and as soon as I lock the screen on Android devices, the App crashes and I get the following:

E/AndroidRuntime: FATAL EXCEPTION: main Process: com.catapult.fitup, PID: 10870 java.lang.NoSuchMethodError: No static method metafactory(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite; in class Ljava/lang/invoke/LambdaMetafactory; or its super classes (declaration of 'java.lang.invoke.LambdaMetafactory' appears in /apex/com.android.runtime/javalib/core-oj.jar) at de.appplant.cordova.plugin.background.BackgroundModeExt.clearKeyguardFlags(BackgroundModeExt.java:387)

I also added
compileOptions { sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 }
to the build.gradle files!

Any ideas?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant