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
java.lang.IllegalAccessException RenderingProblems #29
Comments
This is something similar to what I am facing. Would really appreciate some or any help regarding the same. |
Hm this feels like a proguard problem. Have you added a rule like it it written in the readme? I'm on vacation now so I can be at bit slow to answer. |
Hey, sorry to bug you over on your vacation, but as it seems I did add the proguard rules earlier only. |
Hm ok. Could you please make a small test app where the crash is reproducible and mail it to me and I will investigate it. |
No, it's not like the app is crashing but more like the dragList is not updating with any values, none whatsoever. |
Ok, it is hard for me to figure put what the problem is without a test app to debug. So please make a test app with the same layout structure and same problem and mail me and I will check it out. |
Ok, I got it to work. I omitted a key method while creating the itemAdapter and it wasn't linking to the current(or any) item. |
I got same problem, Android studio could not render xml file in the preview area, code is still built and run as well. |
Ok, so it is only in the preview area you have a problem now? Building and running the app works fine? |
I am English for beginners.
Now do you simply need to send an application?(Google Translate) |
Yeah, the preview area is the problem and honestly it doesn't matter. The app works just fine! |
Ok, I will look into the preview area when I get home from vacation. |
I looked into the problem and even if I change the DragItemRecyclerView to public I run into other reflection problems with the preview area. java.lang.reflect.InvocationTargetException at java.lang.reflect.Method.invoke(Method.java:497) at com.android.layoutlib.bridge.util.ReflectionUtils.invoke(ReflectionUtils.java:45) at com.android.layoutlib.bridge.android.support.RecyclerViewUtil.setProperty(RecyclerViewUtil.java:126) at com.android.layoutlib.bridge.android.support.RecyclerViewUtil.setProperty(RecyclerViewUtil.java:120) at com.android.layoutlib.bridge.android.support.RecyclerViewUtil.setAdapter(RecyclerViewUtil.java:62) at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:727) at android.view.LayoutInflater.inflate(LayoutInflater.java:495) at android.view.LayoutInflater.inflate(LayoutInflater.java:426) at com.woxthebox.draglistview.DragListView.createRecyclerView ... (DragListView.java:131) at com.woxthebox.draglistview.DragListView.onFinishInflate(DragListView.java:94) It is when they try to setup the adapter "setProperty(recyclerView, CN_ADAPTER, adapter, "setAdapter");" which the problem arises. I guess it is because I subclass the RecyclerView. I don't really know how to fix this problem. |
Who do you finding a bug? |
Hum I don't understand you question. |
Xml File Set Inner
<com.woxthebox.draglistview.DragListView
android:id="@+id/lv_academy"
android:layout_width="match_parent"
android:layout_height="match_parent" />
Error Content
Rendering Problems
java.lang.IllegalAccessException: Class com.android.layoutlib.bridge.util.ReflectionUtils can not access a member of class com.woxthebox.draglistview.DragItemRecyclerView with modifiers "public" at java.lang.reflect.AccessibleObject.slowCheckMemberAccess(AccessibleObject.java:296) at java.lang.reflect.AccessibleObject.checkAccess(AccessibleObject.java:288) at java.lang.reflect.Method.invoke(Method.java:490) at com.android.layoutlib.bridge.util.ReflectionUtils.invoke(ReflectionUtils.java:45) at com.android.layoutlib.bridge.android.support.RecyclerViewUtil.setProperty(RecyclerViewUtil.java:126) at com.android.layoutlib.bridge.android.support.RecyclerViewUtil.setProperty(RecyclerViewUtil.java:120) at com.android.layoutlib.bridge.android.support.RecyclerViewUtil.setLayoutManager(RecyclerViewUtil.java:78) at com.android.layoutlib.bridge.android.support.RecyclerViewUtil.setAdapter(RecyclerViewUtil.java:59) at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:704) at android.view.LayoutInflater.inflate(LayoutInflater.java:492) at android.view.LayoutInflater.inflate(LayoutInflater.java:423) at com.woxthebox.draglistview.DragListView.createRecyclerView ... (DragListView.java:131) at com.woxthebox.draglistview.DragListView.onFinishInflate(DragListView.java:94)
Maybe private or Protectd -> public change?
The text was updated successfully, but these errors were encountered: