-
Notifications
You must be signed in to change notification settings - Fork 102
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 migrating to AndroidX #49
Comments
I ran into this same issue. Opened up #50 |
AndroidX is not yet included in react-native projects. #50 includes many unnecessary files and it doesn't keep retro compatibility with current projects. I would recommend to append the following snippet to your
Let me know if that works. |
@vinzscam is working using the snippet code thanks. |
FWIW. The AndroidX migration stuff was merged into React Native. facebook/react-native#23112. It seems like its coming in 0.60. |
When I do this, in Android Studio, the project seems to build fine, but when i run
|
I have the same problem! |
java.lang.RuntimeException: Unable to get provider com.vinzscam.reactnativefileviewer.FileProvider: java.lang.ClassNotFoundException: Didn't find class "com.vinzscam.reactnativefileviewer.FileProvider" on path: DexPathList[[zip file "/data/app/com.preventioncloud-31cbX744wihkDqzlqjvVKg==/base.apk"],nativeLibraryDirectories=[/data/app/com.preventioncloud-31cbX744wihkDqzlqjvVKg==/lib/arm, /data/app/com.preventioncloud-31cbX744wihkDqzlqjvVKg==/base.apk!/lib/armeabi-v7a, /system/lib, /vendor/lib]] i am getting this type of runtime error after execute npx react-native run-android command app is successfully installed and crashed after splash screen and get these type of crash log any one can help me with this |
Hi,
I using this great library and I was trying to migrate my react native project to AndroidX but the following error is show:
Error:
package android.support.v4.content does not exist
In the file:
android\src\main\java\com\vinzscam\reactnativefileviewer\RNFileViewerModule.java
Line:
8
Do you know when I will be able to use this library with AndroidX?
Thanks.
The text was updated successfully, but these errors were encountered: