NoClassDefFoundError的Andr​​oidStudio之后升级到1.0(12月8日)升级到、Andr、NoClassDefFoundError、oidStudio

2023-09-06 15:55:42 作者:遺矢旳流年

与Android工作室previous版本的正常工作与候选版本4(12月4日)或更高版本:

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

FATAL EXCEPTION: main

 java.lang.NoClassDefFoundError: com.google.android.gms.location.LocationClient

在我看来,这是关系到更新com.android.tools.build:gradle:1.0.0

这看起来类似于: https://github.com/robolectric/robolectric/issues/1136

修改

工作:编译com.google.android.gms:玩-服务:6.1 +。

working : compile 'com.google.android.gms:play-services:6.1.+'

推荐答案

这有没有关系摇篮。这对谷歌播放业务的最新情况。该 LocationClient 类已被替换为新的 FusedLocationProviderApi

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.

检查这样的回答: Android发挥服务6.5:LocationClient缺少