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

NullPointerException when running release application #8

Open
abozanona opened this issue Nov 22, 2019 · 8 comments
Open

NullPointerException when running release application #8

abozanona opened this issue Nov 22, 2019 · 8 comments

Comments

@abozanona
Copy link

When I run a release apk I get this exception after the VIdeoPlayer finishes downloading decoder.

java.lang.NullPointerException: Attempt to invoke virtual method 'int java.lang.Object.hashCode()' on a null object reference
	at java.util.concurrent.ConcurrentHashMap.get(ConcurrentHashMap.java:944)
	at com.github.tcking.gplayer.D.a(:2)
	at com.github.tcking.gplayer.LazyLoadManager.a(:14)
	at com.github.tcking.gplayer.LazyLoadManager.onHandleIntent(:4)
	at android.app.IntentService$ServiceHandler.handleMessage(IntentService.java:76)
	at android.os.Handler.dispatchMessage(Handler.java:106)
	at android.os.Looper.loop(Looper.java:176)
	at android.os.HandlerThread.run(HandlerThread.java:65)
@abimujianto
Copy link

abimujianto commented Dec 18, 2019

Me too, how to solve it. Please help me. I really need the solution,

java.lang.NullPointerException: Attempt to invoke virtual method 'int java.lang.Object.hashCode()' on a null object reference
at java.util.concurrent.ConcurrentHashMap.get(ConcurrentHashMap.java:944)
at com.github.tcking.gplayer.g.a(Unknown Source:2)
at com.github.tcking.gplayer.LazyLoadManager.a(Unknown Source:6)
at com.github.tcking.gplayer.LazyLoadManager.onHandleIntent(Unknown Source:32)
at android.app.IntentService$ServiceHandler.handleMessage(IntentService.java:76)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:201)
at android.os.HandlerThread.run(HandlerThread.java:65)

This is the error

@abozanona
Copy link
Author

@abimujianto I didn't find a solution for this issue. I had to use flutter_ijkplayer instead.

@abimujianto
Copy link

Do you use androidx for your package flutter?

@abozanona
Copy link
Author

Yes.

@abimujianto
Copy link

maybe gplayer not support on androidx ?

@abozanona
Copy link
Author

I don't think that gplayer doesn't support on androidx. I tried to use gplayer before and after upgrading my project to androidx and the same error happened.

@abimujianto
Copy link

btw, i tried to release with android 9 its work, try downgrade your android version. its will work

@usaikoo
Copy link

usaikoo commented Feb 19, 2020

keep java class in proguard file
see https://github.com/befovy/fijkplayer/pull/98/files
then you will solve all problem thanks. 👍

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