DexPatcher / dexpatcher-gradle

Modify Android applications at source-level in Android Studio
https://dexpatcher.github.io/
GNU General Public License v3.0
84 stars 17 forks source link

Android Studio preview layout not render in all layouts in design mode #35

Closed lcm92 closed 4 years ago

lcm92 commented 4 years ago

This is my demo source code dependency ic_source_dependency

and demo patch code dependency ic_patch_dependency

When I try to preview layout in design mode, the view does not render in all layouts that use: androidx.constraintlayout.widget.ConstraintLayout give the following error the following classes could not be instantiated

I did clean and rebuild project, invalidates caches / restart, close and reopen Android Studio, but did not solve the problem.

ic_error_view

Lanchon commented 4 years ago

sorry i've no idea. maybe it's an AS bug, maybe you are doing something wrong. no way to know.

why are you depending on that stuff in the patch? is it not part of the APK? by default the APK names are imported already.

lcm92 commented 4 years ago

Have you tried yet? I have tried with a few apps using ConstraintLayout or some other libraries belonging to androidx and their own properties didn't work in Android Preview.