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.RuntimeException: Unable to find Class for com.mybataz.contest.h$SwipeViewBinder #114
Comments
App crashing, in signed apk build, anyone please help me |
@Yellu Which library version you are using? use 1.0.2+ version compile 'com.mindorks.android:placeholderview:1.0.2'
annotationProcessor 'com.mindorks.android:placeholderview-compiler:1.0.2' |
@janishar, using kotlin supported versions (1.0.2) compile 'com.mindorks.android:placeholderview:1.0.2' in debug build it is working without any problem, but in signed apk with progaurd, it is crashing |
@Yellu compile 'com.mindorks.android:placeholderview:1.0.3'
kapt 'com.mindorks.android:placeholderview-compiler:1.0.3' |
Thank you @janishar |
I keep having this exact problem even after updating to the latest version:
I managed to get around it by adding the following line to
|
Also using version 1.0.3 , getting the same error: My app's build.gradle `dependencies { } I haven't been able to figure out the issue yet. (on latest version, 1.0.3 too and have tried downgrading) |
This is not working for me yet am using same and exact versions, or does it have issues in androidX? I have same error |
04-21 12:06:20.460 1418-1418/? E/AndroidRuntime: FATAL EXCEPTION: main
Process: bataz.com.bataz, PID: 1418
java.lang.RuntimeException: Unable to start activity ComponentInfo{bataz.com.bataz/com.mybataz.contest.RateNowActivity}: java.lang.RuntimeException: Unable to find Class for com.mybataz.contest.h$SwipeViewBinder
PLEASE ADD >> annotationProcessor 'com.mindorks.android:placeholderview-compiler:' << in build.gradle
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2724)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2785)
at android.app.ActivityThread.-wrap12(ActivityThread.java)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1532)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:163)
at android.app.ActivityThread.main(ActivityThread.java:6342)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:880)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:770)
Caused by: java.lang.RuntimeException: Unable to find Class for com.mybataz.contest.h$SwipeViewBinder
PLEASE ADD >> annotationProcessor 'com.mindorks.android:placeholderview-compiler:' << in build.gradle
at com.mindorks.placeholderview.c.a(Unknown Source)
at com.mindorks.placeholderview.c.a(Unknown Source)
at com.mindorks.placeholderview.SwipePlaceHolderView.a(Unknown Source)
at com.mindorks.placeholderview.SwipePlaceHolderView.b(Unknown Source)
at com.mybataz.contest.RateNowActivity.onPostCreate(Unknown Source)
at android.app.Instrumentation.callActivityOnPostCreate(Instrumentation.java:1200)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2706)
... 9 more
Caused by: java.lang.ClassNotFoundException: Didn't find class "com.mybataz.contest.h$SwipeViewBinder" on path: DexPathList[[zip file "/data/app/bataz.com.bataz-1/base.apk"],nativeLibraryDirectories=[/data/app/bataz.com.bataz-1/lib/arm, /data/app/bataz.com.bataz-1/base.apk!/lib/armeabi-v7a, /system/lib, /vendor/lib]]
at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
at java.lang.ClassLoader.loadClass(ClassLoader.java:380)
at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
... 16 more
The text was updated successfully, but these errors were encountered: