Android的支持库和媒体路由器.jar文件无法找到 [英] Android Support Library and Media Router .jar files cannot be found

查看:256
本文介绍了Android的支持库和媒体路由器.jar文件无法找到的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我完全新Xamarin。我想添加地图默认的Hello World在Xamarin.Android。我有prepared我从指导一步一步清单。还下载了通过SDK管理器支持库,但我得到的错误要我安装SL和SL媒体路由器。

I am totally new to Xamarin. I want to add map to the default hello world in Xamarin.Android. I have prepared my Manifest step by step from the guide. Also downloaded the support library via sdk manager but I get errors asking me to install SL and SL media Router.

下面清单:

<?xml version="1.0" encoding="utf-8"?>


    
    
    

<!-- We need to be able to download map tiles and access Google Play Services-->
<uses-permission android:name="android.permission.INTERNET" />

<!-- Allow the application to access Google web-based services. -->
<uses-permission android:name="com.google.android.providers.gsf.permission.READ_GSERVICES" />

<!-- Google Maps for Android v2 will cache map tiles on external storage -->
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />

<!-- Google Maps for Android v2 needs this permission so that it may check the connection state as it must download data -->
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />

<!-- Permission to receive remote notifications from Google Play Services -->
<!-- Notice here that we have the package name of our application as a prefix on the permissions. -->
<uses-permission android:name="com.MyAppName.MyAppName.permission.MAPS_RECEIVE" />
<permission android:name="com.MyAppName.permission.MAPS_RECEIVE" android:protectionLevel="signature" />

<!-- These are optional, but recommended. They will allow Maps to use the My Location provider. -->
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />


<application android:label="@string/app_name">

    <meta-data android:name="com.google.android.maps.v2.API_KEY" android:value="AIzaSyCV3Xs4ah1VkL8dI2JWmP2UiTlH4HZuQfQ" />
    <meta-data android:name="com.google.android.gms.version" android:value="@integer/google_play_services_version" />
</application>

和一些错误,我得到的:

And some of the errors I get:

  /Users/apple/Projects/MyAppNameAndroid/MyAppNameAndroid: Error XA5207: Please install package: 'Android Support Library' available in SDK installer. Java library file /Users/apple/.local/share/Xamarin/Android.Support.v7.AppCompat/21.0.3/embedded/classes.jar doesn't exist. (XA5207) (MyAppNameAndroid)

/Users/apple/Projects/MyAppNameAndroid/MyAppNameAndroid: Error XA5209: Unzipping failed. Please download https://dl-ssl.google.com/android/repository/android_m2repository_r10.zip and extract it to the /Users/apple/.local/share/Xamarin/Android.Support.v7.AppCompat/21.0.3/content directory. (XA5209) (MyAppNameAndroid)

/Users/apple/Projects/MyAppNameAndroid/MyAppNameAndroid: Error XA5209: Reason: /Users/apple/.local/share/Xamarin/Android.Support.v7.AppCompat/21.0.3/android_m2repository_r10.zip is not a valid zip file (XA5209) (MyAppNameAndroid)


/Users/apple/Projects/MyAppNameAndroid/MyAppNameAndroid: Error XA5206: Please install package: 'Android Support Library' available in SDK installer. Android resource directory /Users/apple/.local/share/Xamarin/Android.Support.v7.AppCompat/21.0.3/embedded/. doesn't exist. (XA5206) (MyAppNameAndroid)

/Users/apple/Projects/MyAppNameAndroid/MyAppNameAndroid: Error XA5209: Unzipping failed. Please download https://dl-ssl.google.com/android/repository/android_m2repository_r10.zip and extract it to the /Users/apple/.local/share/Xamarin/Android.Support.v7.MediaRouter/21.0.3/content directory. (XA5209) (MyAppNameAndroid)

我也下载在URL中提到的.zip文件,但
有没有这样的文件夹 /users/apple/.local ...它复制

难道真是这个棘手的地图权限添加到应用程序或我做某事错?

Is it really this tricky to add map permissions to an app or I'm doing sth wrong?

推荐答案

我建议你阅读<一个href=\"http://developer.xamarin.com/guides/android/platform_features/maps_and_location/maps/part_1_-_maps_application/\"相对=nofollow>这个。 Xamarin在如何添加和设置地图碎片的指南。

I suggest you read this. Xamarin has a guide in how to add and setup a map fragment.

您还需要从Xamarin组件商店从Android SDK管理器上安装谷歌播放服务组件,而不是

You also need to install the google play services component from the Xamarin component store, not from the Android SDK manager.

这篇关于Android的支持库和媒体路由器.jar文件无法找到的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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