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

problem class not found #5

Open
adjmiahmed opened this issue Mar 22, 2018 · 2 comments
Open

problem class not found #5

adjmiahmed opened this issue Mar 22, 2018 · 2 comments

Comments

@adjmiahmed
Copy link

image

hi i'm having this exception and i dont realy understand the reason behind it .I only copyet the code and converted in kotlin .

java.lang.RuntimeException: Unable to start activity ComponentInfo{com.internship.ahmedaj.stagepfe/com.internship.ahmedaj.stagepfe.MainActivity}: java.lang.RuntimeException: Unable to find Class for com.internship.ahmedaj.stagepfe.TinderCard
PLEASE ADD >> annotationProcessor 'com.mindorks.android:placeholderview-compiler:' << in build.gradle
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2656)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2721)
at android.app.ActivityThread.access$900(ActivityThread.java:168)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1393)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:135)
at android.app.ActivityThread.main(ActivityThread.java:5753)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1405)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1200)
Caused by: java.lang.RuntimeException: Unable to find Class for com.internship.ahmedaj.stagepfe.TinderCard
PLEASE ADD >> annotationProcessor 'com.mindorks.android:placeholderview-compiler:' << in build.gradle
at com.mindorks.placeholderview.Binding.getBinderInstance(Binding.java:44)
at com.mindorks.placeholderview.Binding.bindSwipeDirectionalViewResolver(Binding.java:74)
at com.mindorks.placeholderview.SwipeDirectionalView.getViewBinder(SwipeDirectionalView.java:64)
at com.mindorks.placeholderview.SwipePlaceHolderView.addView(SwipePlaceHolderView.java:211)
at com.internship.ahmedaj.stagepfe.MainActivity.onCreate(MainActivity.kt:50)
at android.app.Activity.performCreate(Activity.java:6112)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1117)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2609)
... 10 more
Caused by: java.lang.ClassNotFoundException: Didn't find class "com.internship.ahmedaj.stagepfe.TinderCard$DirectionalViewBinder" on path: DexPathList[[zip file "/data/app/com.internship.ahmedaj.stagepfe-2/base.apk"],nativeLibraryDirectories=[/vendor/lib, /system/lib]]
at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
at java.lang.ClassLoader.loadClass(ClassLoader.java:511)
at java.lang.ClassLoader.loadClass(ClassLoader.java:469)
at com.mindorks.placeholderview.Binding.getBinderInstance(Binding.java:25)
... 17 more
Suppressed: java.lang.ClassNotFoundException: com.internship.ahmedaj.stagepfe.TinderCard$DirectionalViewBinder
at java.lang.Class.classForName(Native Method)
at java.lang.BootClassLoader.findClass(ClassLoader.java:781)
at java.lang.BootClassLoader.loadClass(ClassLoader.java:841)
at java.lang.ClassLoader.loadClass(ClassLoader.java:504)
... 19 more
Caused by: java.lang.NoClassDefFoundError: Class not found using the boot class loader; no stack available

@janishar
Copy link
Owner

@adjmiahmed Just rebuild the project

@janishar
Copy link
Owner

janishar commented Apr 2, 2018

@adjmiahmed Upgrade the library to 1.0.1

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