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

NullPointer issue just when added view in xml #19

Open
jaydeep911 opened this issue Mar 28, 2020 · 1 comment
Open

NullPointer issue just when added view in xml #19

jaydeep911 opened this issue Mar 28, 2020 · 1 comment

Comments

@jaydeep911
Copy link

aused by: java.lang.NullPointerException: Attempt to invoke virtual method 'void androidx.appcompat.widget.AppCompatImageButton.setOnClickListener(android.view.View$OnClickListener)' on a null object reference

Caused by: android.view.InflateException: Binary XML file line #23: Binary XML file line #18: Error inflating class com.potyvideo.library.AndExoPlayerView
Caused by: android.view.InflateException: Binary XML file line #18: Error inflating class com.potyvideo.library.AndExoPlayerView
Caused by: java.lang.reflect.InvocationTargetException

@decrypthimanshu
Copy link

decrypthimanshu commented Apr 6, 2020

Hey there just add to apps gradle

compileOptions {
    targetCompatibility JavaVersion.VERSION_1_8
}

your issue will be solved !!!

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