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 on start (Android Version Android 8.0 (SDK 26)) #394

Open
FrankFundel opened this issue Feb 15, 2021 · 1 comment
Open

App crashes on start (Android Version Android 8.0 (SDK 26)) #394

FrankFundel opened this issue Feb 15, 2021 · 1 comment

Comments

@FrankFundel
Copy link

Type: java.lang.IllegalStateException

java.lang.IllegalStateException: 
  at android.os.Parcel.readException (Parcel.java:1975)
  at android.os.Parcel.readException (Parcel.java:1913)
  at android.app.IActivityManager$Stub$Proxy.setRequestedOrientation (IActivityManager.java:6214)
  at android.app.Activity.setRequestedOrientation (Activity.java:5840)
  at com.github.yamill.orientation.OrientationModule.lockToPortrait (OrientationModule.java:79)
  at java.lang.reflect.Method.invoke (Native Method)
  at com.facebook.react.bridge.JavaMethodWrapper.invoke (JavaMethodWrapper.java:371)
  at com.facebook.react.bridge.JavaModuleWrapper.invoke (JavaModuleWrapper.java:150)
  at com.facebook.react.bridge.queue.NativeRunnable.run (Native Method)
  at android.os.Handler.handleCallback (Handler.java:789)
  at android.os.Handler.dispatchMessage (Handler.java:98)
  at com.facebook.react.bridge.queue.MessageQueueThreadHandler.dispatchMessage (MessageQueueThreadHandler.java:26)
  at android.os.Looper.loop (Looper.java:164)
  at com.facebook.react.bridge.queue.MessageQueueThreadImpl$4.run (MessageQueueThreadImpl.java:225)
  at java.lang.Thread.run (Thread.java:764)

On:
Samsung Galaxy S7
Android 8.0 (SDK 26)

Using:

    ext {
        buildToolsVersion = "29.0.3"
        minSdkVersion = 16
        compileSdkVersion = 29
        targetSdkVersion = 29
    }

and
"react-native-orientation": "^3.1.3"

Maybe when running:

    try {
      Orientation.lockToPortrait();
    } catch (err) {
      console.log(err);
    }

Hopefully anyone can help.

@Lunziyuan
Copy link

+1

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

2 participants