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

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

问题描述

使用早期版本的 Android Studio 可以正常使用 Release Candidate 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:play-services:6.1.+'

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

推荐答案

这与 gradle 无关.这是 Google Play 服务的更新.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

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

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