NoClassDefFoundError after AndroidStudio upgrade to 1.0 (December 8th)

后端 未结 2 1113
醉话见心
醉话见心 2021-01-14 03:34

with previous versions of Android Studio working properly with Release Candidate 4 (December 4th) or newer:

FATAL EXCEPTION: main

 java.lang.NoClassDefFoun         


        
相关标签:
2条回答
  • 2021-01-14 04:05

    This has nothing to do with gradle. It's an update for Google Play Services. The LocationClient class has been replaced with the new FusedLocationProviderApi.

    Check this answer: Android play services 6.5: LocationClient is missing

    0 讨论(0)
  • 2021-01-14 04:19

    Try with this :

    dependencies 
    {
        classpath 'com.android.tools.build:gradle:1.0.0+'
        classpath 'com.jakewharton.sdkmanager:gradle-plugin:0.9.+'
    }
    

    And also do

        buildTypes 
       {
            release 
           {
                minifyEnabled false
                proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-    rules.txt'
            }
        }
    
    0 讨论(0)
提交回复
热议问题