PhotoView icon indicating copy to clipboard operation
PhotoView copied to clipboard

Error inflating class com.github.chrisbanes.photoview.PhotoView

Open bmrbehnam opened this issue 5 years ago • 0 comments

Hi i am use PhotoView in my recycler view.

and get error when inflate view on adapter:

public PostViewHolder onCreateViewHolder(@NonNull ViewGroup viewGroup, int i) { View view = LayoutInflater.from(context).inflate(R.layout._post,viewGroup,false); return new PostViewHolder(view); }

this not related to multidex. this error on all android version.

build error is :

android.view.InflateException: Binary XML file line #10 in ..:layout/_post: Binary XML file line #10 in ..4:layout/_post: Error inflating class com.github.chrisbanes.photoview.PhotoView Caused by: android.view.InflateException: Binary XML file line #10 in ...:layout/_post: Error inflating class com.github.chrisbanes.photoview.PhotoView Caused by: java.lang.ClassNotFoundException: com.github.chrisbanes.photoview.PhotoView

bmrbehnam avatar Dec 10 '19 18:12 bmrbehnam