NoClassDefFoundError的Andr​​oidStudio之后升级到1.0(12月8日) [英] NoClassDefFoundError after AndroidStudio upgrade to 1.0 (December 8th)

查看:135
本文介绍了NoClassDefFoundError的Andr​​oidStudio之后升级到1.0(12月8日)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

与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.

检查这样的回答: <一href="http://stackoverflow.com/questions/27372638/android-play-services-6-5-locationclient-is-missing">Android发挥服务6.5:LocationClient缺少

这篇关于NoClassDefFoundError的Andr​​oidStudio之后升级到1.0(12月8日)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆