-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Error on Android #37
Comments
Same here. RN 0.40 |
Here the problem seems to be on the react-native-splash-screen module. I've commented the line: I'll check the module later to see if I can send a PR. |
Getting the same issue, commenting out |
Same problem here with the line |
Is a little bit confusing the name conventions, but well... You need to add the line This is my code: MainActivity.java
|
@brunocascio it can't work for me ,I have to add it to function onResume.I think it is not a good Solution。 |
Could you paste here the code of |
Same issue here, reason: launch_screen.xml
MainActivity.java
MainApplication.java
Hope this helps. |
@IceNeoMax open |
This error happens to me since I mistakenly created the "layout" folder outside "res".. make sure you have the correct folder structure. "app/src/main/res/layout" |
Same issue( |
@asinel Did you check if the |
I met the similar issue, the reason is I wrote a wrong file name: lauch_screen.xml , after correct it to : launch_screen.xml,everything goes well |
Same issue here
|
This fixed it for me, I simply forgot to follow the steps for installing the png in the right folders with all the correct xml data: |
I have the same issue. I created an elaborated question on StackOverflow. |
`Same issue 03-09 22:14:38.384 28230-28230/com.base_proj2 E/AndroidRuntime: FATAL EXCEPTION: main |
I am also getting same error RN version : 0.61 java.lang.RuntimeException: Unable to start activity ComponentInfo{com.love/com.love.MainActivity}: android.content.res.Resources$NotFoundException: Resource ID #0x7f0d0036 type #0x1 is not valid |
I have faced the same issue occurs because I have created |
Had the same issue, followed this and fixed it #167 (comment) |
i got this message after build and i got message that "Unforturnately, App has stopped"
03-03 12:01:27.800 3084-3084/com.thesis E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.thesis, PID: 3084
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.thesis/com.thesis.MainActivity}: android.content.res.Resources$NotFoundException: Resource ID #0x7f04002a type #0x1 is not valid
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2416)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2476)
at android.app.ActivityThread.-wrap11(ActivityThread.java)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1344)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:148)
at android.app.ActivityThread.main(ActivityThread.java:5417)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
Caused by: android.content.res.Resources$NotFoundException: Resource ID #0x7f04002a type #0x1 is not valid
at android.content.res.Resources.loadXmlResourceParser(Resources.java:2779)
at android.content.res.Resources.getLayout(Resources.java:1165)
at android.view.LayoutInflater.inflate(LayoutInflater.java:421)
at android.view.LayoutInflater.inflate(LayoutInflater.java:374)
at com.android.internal.policy.PhoneWindow.setContentView(PhoneWindow.java:393)
at android.app.Dialog.setContentView(Dialog.java:512)
at com.cboy.rn.splashscreen.SplashScreen$1.run(SplashScreen.java:30)
at android.app.Activity.runOnUiThread(Activity.java:5511)
at com.cboy.rn.splashscreen.SplashScreen.show(SplashScreen.java:24)
at com.thesis.MainActivity.onCreate(MainActivity.java:19)
at android.app.Activity.performCreate(Activity.java:6237)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1107)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2369)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2476)
at android.app.ActivityThread.-wrap11(ActivityThread.java)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1344)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:148)
at android.app.ActivityThread.main(ActivityThread.java:5417)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
The text was updated successfully, but these errors were encountered: