I created one parse.com application using the parse.com jar. There were 22 versions of the SDK in this Buid project (it worked fine). But after changing from 23, I ran into some problems compiling the application. I tried to clear the project, invalid cache. Rebuild the project, etc., but I ran into the same problem:
FATAL EXCEPTION: main java.lang.NoClassDefFoundError: com.parse.ParseRequest at com.parse.Parse.initialize(Parse.java:184)
I can not find the exact solution. I checked the libs jar folder. I also tried with the latest
gradle code, but ran into the same error. After removing the syntax banner, I can compile my project. My addictions
dependencies { compile fileTree(include: ['*.jar'], dir: 'libs') compile files('libs/org.apache.http.legacy.jar') compile 'com.android.support:appcompat-v7:23.1.1' compile 'com.android.support:design:23.1.1' compile 'com.android.support:cardview-v7:23.1.1' compile 'com.google.android.gms:play-services:8.1.0' compile 'de.hdodenhof:circleimageview:1.3.0' compile project(':MaterialShowcaseView') compile files('libs/Parse-1.9.2.jar') compile files('libs/bolts-android-1.2.0.jar') compile files('libs/universal-image-loader-1.9.4.jar') }
If I change these dependencies with
compile 'com.parse.bolts:bolts-android:1.4.0' compile 'com.parse:parse-android:1.12.0'
then the error is different. Mistake:
java.lang.NoClassDefFoundError: com.parse.ParsePlugins$1 at com.parse.ParsePlugins.restClient(ParsePlugins.java:92) at com.parse.Parse.initializeParseHttpClientsWithParseNetworkInterceptors(Parse.java:762) at com.parse.Parse.initialize(Parse.java:365) at com.parse.Parse.initialize(Parse.java:344)
Please suggest me what is wrong with this addiction. thanks in advance
Bhavin chauhan
source share