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

android apk release error #34

Open
taohaibing opened this issue Sep 17, 2019 · 5 comments
Open

android apk release error #34

taohaibing opened this issue Sep 17, 2019 · 5 comments

Comments

@taohaibing
Copy link

09-17 11:46:55.448 20714 20714 E AndroidRuntime: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.Class java.lang.Object.getClass()' on a null object reference
09-17 11:46:55.448 20714 20714 E AndroidRuntime: at iyegoroff.RNTextGradient.k.a()
09-17 11:46:55.448 20714 20714 E AndroidRuntime: at iyegoroff.RNTextGradient.h.j()
09-17 11:46:55.448 20714 20714 E AndroidRuntime: at iyegoroff.RNTextGradient.h.a()
09-17 11:46:55.448 20714 20714 E AndroidRuntime: at iyegoroff.RNTextGradient.g.a()
09-17 11:46:55.448 20714 20714 E AndroidRuntime: at com.facebook.react.uimanager.da$p.execute()
09-17 11:46:55.448 20714 20714 E AndroidRuntime: at com.facebook.react.uimanager.ba.run()
09-17 11:46:55.448 20714 20714 E AndroidRuntime: at com.facebook.react.uimanager.da.i()
09-17 11:46:55.448 20714 20714 E AndroidRuntime: at com.facebook.react.uimanager.da.i()
09-17 11:46:55.448 20714 20714 E AndroidRuntime: at com.facebook.react.uimanager.da$f.b()
09-17 11:46:55.448 20714 20714 E AndroidRuntime: at com.facebook.react.uimanager.c.a()
09-17 11:46:55.448 20714 20714 E AndroidRuntime: at com.facebook.react.modules.core.i$b.a()
09-17 11:46:55.448 20714 20714 E AndroidRuntime: at com.facebook.react.modules.core.a.doFrame()
09-17 11:46:55.448 20714 20714 E AndroidRuntime: at android.view.Choreographer$CallbackRecord.run(Choreographer.java:924)
09-17 11:46:55.448 20714 20714 E AndroidRuntime: at android.view.Choreographer.doCallbacks(Choreographer.java:735)
09-17 11:46:55.448 20714 20714 E AndroidRuntime: at android.view.Choreographer.doFrame(Choreographer.java:664)
09-17 11:46:55.448 20714 20714 E AndroidRuntime: at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:912)
09-17 11:46:55.448 20714 20714 E AndroidRuntime: at android.os.Handler.handleCallback(Handler.java:761)
09-17 11:46:55.448 20714 20714 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:98)
09-17 11:46:55.448 20714 20714 E AndroidRuntime: at android.os.Looper.loop(Looper.java:156)
09-17 11:46:55.448 20714 20714 E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:6517)
09-17 11:46:55.448 20714 20714 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method)
09-17 11:46:55.448 20714 20714 E AndroidRuntime: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:942)
09-17 11:46:55.448 20714 20714 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:832)

@iyegoroff
Copy link
Owner

Please specify your rn & rntg versions.

@taohaibing
Copy link
Author

taohaibing commented Sep 26, 2019

Please specify your rn & rntg versions.

"dependencies": {
"react": "16.8.6",
"react-devtools": "^3.6.1",
"react-native": "0.60.3",
"react-native-text-gradient": "^0.1.7",

},

@iyegoroff
Copy link
Owner

This looks ok to me. Can you provide a replicating example or show the code that leads to this error?

@jdvvaghelaoffice
Copy link

Please provide proguard lines, which will work for release builds.

@jdvvaghelaoffice
Copy link

Please provide proguard lines, which will work for release builds.

Used https://github.com/react-native-community/react-native-masked-view library which is now officially supported for android too.
Dependent library is react-native-linear-gradient.

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

3 participants