using card view and recyclerView in eclipse - java

I'm trying to use the new android component (cardView and recyclerView). but I work with eclipse and I try with a different way but it's not work for me.how should i do ?
Error:
Caused by: java.lang.ClassNotFoundException: Didn't find class "android.support.v7.widget.RecyclerView" on path: DexPathList[[zip file "/data/app/com.test.cardviewexemple-1.apk"],nativeLibraryDirectories=[/data/app-lib/com.test.cardviewexemple-1, /vendor/lib, /system/lib]].

Related

Unable to load firebase Init provider - android studio

I cant solve this bug for many days. It happens only when I connect firebase realtime database.
Process: com.bae.dialogflowbot, PID: 4982
java.lang.RuntimeException: Unable to get provider com.google.firebase.provider.FirebaseInitProvider: java.lang.ClassNotFoundException: Didn't find class "com.google.firebase.provider.FirebaseInitProvider" on path: DexPathList[[zip file "/data/app/~~RkMsTUa-PZYOQLsQ7fP8Uw==/com.bae.dialogflowbot-m8QxV2lnB1WTxOUZJ-hy0w==/base.apk"],nativeLibraryDirectories=[/data/app/~~RkMsTUa-PZYOQLsQ7fP8Uw==/com.bae.dialogflowbot-m8QxV2lnB1WTxOUZJ-hy0w==/lib/x86, /system/lib, /system_ext/lib]]
at android.app.ActivityThread.installProvider(ActivityThread.java:7244)
at android.app.ActivityThread.installContentProviders(ActivityThread.java:6780)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:6697)
at android.app.ActivityThread.access$1300(ActivityThread.java:237)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1913)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:223)
at android.app.ActivityThread.main(ActivityThread.java:7656)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:592)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:947)
**Caused by: java.lang.ClassNotFoundException: Didn't find class "com.google.firebase.provider.FirebaseInitProvider" on path: DexPathList[**[zip file "/data/app/~~RkMsTUa-PZYOQLsQ7fP8Uw==/com.bae.dialogflowbot-m8QxV2lnB1WTxOUZJ-hy0w==/base.apk"],nativeLibraryDirectories=[/data/app/~~RkMsTUa-PZYOQLsQ7fP8Uw==/com.bae.dialogflowbot-m8QxV2lnB1WTxOUZJ-hy0w==/lib/x86, /system/lib, /system_ext/lib]]
at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:207)
at java.lang.ClassLoader.loadClass(ClassLoader.java:379)
at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
I tried this and it seemed to work. Go to your gradle and comment out this line:
implementation platform('com.google.firebase:firebase-bom:29.0.3')
Use this one:
implementation platform('com.google.firebase:firebase-bom:27.0.0')
I had FMS working on one project and tried to fold it back into another, but got the same error. After a bunch of unsuccessful searches, I tried making changes to each setting to mirror the first project and this one seemed to work.

Trying to test my android application on firebase test lab but it keeps crashing

hope everyone is doing well.
I am trying to test my application on firebase however it keeps crashing. Firstly, I tried to test it and got the following error:
java.lang.RuntimeException: Unable to get provider com.google.firebase.provider.FirebaseInitProvider: java.lang.ClassNotFoundException: Didn't find class "com.google.firebase.provider.FirebaseInitProvider" on path: DexPathList[[zip file "/data/app/com.example.leonapplication-1/base.apk"],nativeLibraryDirectories=[/data/app/com.example.leonx.application-1/lib/arm, /data/app/com.example.leonx.application-1/base.apk!/lib/armeabi-v7a, /vendor/lib, /system/lib]]
After doing some research I found out about Multidex and configured my app towards this however after trying to test it again, I get a new error:
java.lang.RuntimeException: Unable to instantiate application android.support.multidex.MultiDexApplication: java.lang.ClassNotFoundException: Didn't find class "android.support.multidex.MultiDexApplication" on path: DexPathList[[zip file "/data/app/com.example.leonx.application-1/base.apk"],nativeLibraryDirectories=[/data/app/com.example.leonx.application-1/lib/arm, /data/app/com.example.leonx.application-1/base.apk!/lib/armeabi-v7a, /vendor/lib, /system/lib]]
Does anyone have any advice on how to tackle this? App is running fine on the emulator and on my phone. I have also cleaned the project however still getting the above error
Many thanks, Leon

Android throwing ClassNotFoundException

I have installed and used
compile 'com.github.satyan:sugar:1.5'
many times, but now it is throwing ClassNotFoundException.
Any idea what might be the reason.
Caused by: java.lang.ClassNotFoundException: Didn't find class "android.app.job.JobServiceEngine" on path: DexPathList[[zip file "/data/app/app.###.###-1/base.apk"],nativeLibraryDirectories=[/data/app/app.###.###-1/lib/arm64, /system/lib64, /vendor/lib64]]

Android Google Places API on Lollipop and below

Does Google Places API work on Android Lollipop and below?
Because some phones with my app that uses Google Places gave this error:
java.lang.ClassNotFoundException:
com.google.android.gms.location.places.Places
java.lang.Class.classForName(Native Method)
java.lang.Class.forName()Class.java:324
md5b74118df040d8158864d95fd3b66e81d.MainActivity.n_onResume(Native Method)
md5b74118df040d8158864d95fd3b66e81d.MainActivity.onResume()MainActivity.java:52
android.app.Instrumentation.callActivityOnResume()Instrumentation.java:1281
android.app.Activity.performResume()Activity.java:6320
android.app.ActivityThread.performResumeActivity()ActivityThread.java:3110
android.app.ActivityThread.handleResumeActivity()ActivityThread.java:3152
android.app.ActivityThread.handleLaunchActivity()ActivityThread.java:2495
at android.app.ActivityThread.-wrap11(ActivityThread.java)
android.app.ActivityThread$H.handleMessage()ActivityThread.java:1354
android.os.Handler.dispatchMessage()Handler.java:102
android.os.Looper.loop()Looper.java:148
android.app.ActivityThread.main()ActivityThread.java:5443
java.lang.reflect.Method.invoke(Native Method)
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run()ZygoteInit.java:728
com.android.internal.os.ZygoteInit.main()ZygoteInit.java:618
Caused by: java.lang.ClassNotFoundException: Didn't find class "com.google.android.gms.location.places.Places" on path: DexPathList[[zip file "/mnt/expand/e7a5152a-8805-4bc2-8125-c715c5d4ff20/app/torathamachane.torathamachane-2/base.apk"],nativeLibraryDirectories=[/mnt/expand/e7a5152a-8805-4bc2-8125-c715c5d4ff20/app/torathamachane.torathamachane-2/lib/arm, /mnt/expand/e7a5152a-8805-4bc2-8125-c715c5d4ff20/app/torathamachane.torathamachane-2/base.apk!/lib/armeabi-v7a, /vendor/lib, /system/lib]]
One Reason of your problem can be 'You upgraded your google play service version in your dependency'
In 9.0.2, the 'places' library was inside 'location' library. In 9.2.0, you need to add 'places' library as dependency:
compile 'com.google.android.gms:play-services-places:9.2.0'
Also,for play service 9.2.0 places import has changed from
import com.google.android.gms.location.places;
to
import com.google.android.gms.location.places.Place;
or you need all places folder
import com.google.android.gms.location.places.*;

Error - Didn't find class "javax.naming.ldap.LdapName"

I'm using unirest to get a camfind result.
The full error log :
04-14 18:24:39.574 1880-2300/projectco.project E/AndroidRuntime﹕ FATAL EXCEPTION: Thread-120
Process: projectco.project, PID: 1880
java.lang.NoClassDefFoundError: Failed resolution of: Ljavax/naming/ldap/LdapName;
at com.mashape.relocation.conn.ssl.AbstractVerifier.extractCNs(AbstractVerifier.java:277)
at com.mashape.relocation.conn.ssl.AbstractVerifier.getCNs(AbstractVerifier.java:265)
at com.mashape.relocation.conn.ssl.AbstractVerifier.verify(AbstractVerifier.java:157)
at com.mashape.relocation.conn.ssl.AbstractVerifier.verify(AbstractVerifier.java:140)
[...] more "at"s
at bookshotco.bookshot2.MainActivity$1.run(MainActivity.java:100)
at java.lang.Thread.run(Thread.java:818)
Caused by: java.lang.ClassNotFoundException: Didn't find class "javax.naming.ldap.LdapName" on path: DexPathList[[zip file "/data/app/projectco.project-1/base.apk"],nativeLibraryDirectories=[/vendor/lib, /system/lib]]
at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
[..]
Suppressed: java.lang.ClassNotFoundException: javax.naming.ldap.LdapName
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)
... 23 more
Caused by: java.lang.NoClassDefFoundError: Class not found using the boot class loader; no stack available
Few people had this problem and even fewer solved it, most of the times using stuff to do with compatibility of different versions which did not work for me.
The emulator I'm using is up to date (nexus 5 on api 21).
I've recently had the same issue and it was only happening in obfuscated code. So keeping the whole org.apache package in Proguard rules solved the issue.
# Keep Apache Package, since it cannot find some of the classes and throws Verify Error
-keep class org.apache.** {*;}
This error can also be caused by requiring ssl (i.e., "useSSL") when connecting to a remote server and NOT having verifyServerCertificate and trustServerCertificate defined as below, and also not having a server certificate defined properly. The system is trying to use an LDAP authentication process, thus the error.
val info = Properties()
info.setProperty("useSSL", "true")
info.setProperty("requireSSL", "true")
info.setProperty("user", user)
info.setProperty("password", password)
info.setProperty("verifyServerCertificate", "false")
info.setProperty("trustServerCertificate", "true")
Also, if you define:
trustServerCertificate=false
then you may need to set the following (unless everything matches up):
disableSslHostnameVerification=true

Categories