【发布时间】:2016-01-07 07:14:29
【问题描述】:
我正在学习android,我想使用google play服务进行定位服务。
我正在关注:http://www.androidhive.info/2015/02/android-location-api-using-google-play-services/
我有导入库google-play-service_lib,正如这个例子所要求的。但在 res/values-v21 & res/values-v11 中显示以下错误
如果有人知道这一点,请提供帮助。谢谢。
错误-1
Description : error: Error retrieving parent for item: No resource found that matches the given name `'@android:style/Theme.Material.Light.DialogWhenLarge.NoActionBar'.`
Resource : appinvite_styles.xml
Path : /google-play-services_lib/res/values-v21
Location : line 5
Type : Android AAPT Problem
错误 2
Description : error: Error retrieving parent for item: No resource found that matches the given name `'@android:style/Theme.Holo.Light.DialogWhenLarge.NoActionBar'.`
Resource : appinvite_styles.xml
Path : /google-play-services_lib/res/values-v11
Location : line 5
Type : Android AAPT Problem
这是我的文件 res/values-v11
<?xml version="1.0" encoding="utf-8"?>
<resources>
<!-- Base preview application theme. -->
<style name="Theme.AppInvite.Preview.Base" parent="@android:style/Theme.Holo.Light.DialogWhenLarge.NoActionBar"/>
</resources>
这是我的文件 res/values-v21
<?xml version="1.0" encoding="utf-8"?>
<resources>
<!-- Base preview application theme. -->
<style name="Theme.AppInvite.Preview.Base" parent="@android:style/Theme.Material.Light.DialogWhenLarge.NoActionBar"/>
</resources>
【问题讨论】:
-
请告诉我为什么要投反对票?我是这个网站的新用户。所以请告诉我我的问题是否有误
标签: android location google-geolocation