Skip to content Skip to sidebar Skip to footer

Getting Exception : Java.lang.noclassdeffounderror: Android.support.v7.app.appcompatdelegateimplv14

I updated Android Studio and the android design library recently since then I am getting an exception java.lang.NoClassDefFoundError: android.support.v7.app.AppCompatDelegateImplV1

Solution 1:

I resolved this issue and if anyone is experiencing this issue try these options(3rd point fixed my problem):

  1. Add multiDexEnabled true in defaultConfig of build.gradle.

    defaultConfig { applicationId "com.something.ranjith.androidprojdel" minSdkVersion 15 targetSdkVersion 22 versionCode 1 versionName "1.0" multiDexEnabled true }

  2. Remove android support library if your activity extends `AppcompatActivity'

    compile 'com.android.support:support-v4:22.+' //remove this

  3. If you have PlayServices in your app then remove the PlayServices and add the individual APIs. For eg:- if you are using PlayServices for ads then just add compile com.google.android.gms:play-services-ads:7.5.0 instead of compile com.google.android.gms:play-services:7.5.0

List of individual APIs of PlayServices:

  • Google+com.google.android.gms:play-services-plus:7.5.0
  • Google Account Logincom.google.android.gms:play-services-identity:7.5.0
  • Google Actions, Base Client Librarycom.google.android.gms:play-services-base:7.5.0
  • Google App Indexingcom.google.android.gms:play-services-appindexing:7.5.0
  • Google App Invitescom.google.android.gms:play-services-appinvite:7.5.0
  • Google Analyticscom.google.android.gms:play-services-analytics:7.5.0
  • Google Castcom.google.android.gms:play-services-cast:7.5.0
  • Google Cloud Messagingcom.google.android.gms:play-services-gcm:7.5.0
  • Google Drivecom.google.android.gms:play-services-drive:7.5.0
  • Google Fitcom.google.android.gms:play-services-fitness:7.5.0
  • Google Location, Activity Recognition, and Placescom.google.android.gms:play-services-location:7.5.0
  • Google Mapscom.google.android.gms:play-services-maps:7.5.0
  • Mobile Adscom.google.android.gms:play-services-ads:7.5.0
  • Google Nearbycom.google.android.gms:play-services-nearby:7.5.0
  • Google Panorama Viewer `com.google.android.gms:play-services-panorama:7.5.0
  • Google Play Game servicescom.google.android.gms:play-services-games:7.5.0
  • SafetyNetcom.google.android.gms:play-services-safetynet:7.5.0
  • Google Walletcom.google.android.gms:play-services-wallet:7.5.0
  • Android Wearcom.google.android.gms:play-services-wearable:7.5.0

Post a Comment for "Getting Exception : Java.lang.noclassdeffounderror: Android.support.v7.app.appcompatdelegateimplv14"