none
Cross Platform Xamarin Android App RRS feed

  • Question

  • Hi There,

    I am getting struggle in creating sample Xamarin projects in Visual Studio 2015 and could not run a single cross platform Xamarin Android app till now. I have created a sample Blank App(Xamarin.Forms.Portable) after installing Xamarin extension properly in Visual Studio 2015. Here I am getting following compilation errors,

    Severity               Code     Description        Project File        Line       Suppression State

    Error                      Please install package: 'Xamarin.Android.Support.v7.AppCompat' available in SDK installer. Java library file C:\Users\shanmugam\AppData\Local\Xamarin\Xamarin.Android.Support.v7.AppCompat\23.0.1.3\embedded\classes.jar doesn't exist.     App1.Droid                                        

    Error                      Please install package: 'Xamarin.Android.Support.v7.CardView' available in SDK installer. Android resource directory C:\Users\shanmugam\AppData\Local\Xamarin\Xamarin.Android.Support.v7.CardView\23.0.1.3\embedded\./ doesn't exist.     App1.Droid                                        

    Error                      Download failed. Please download https://dl-ssl.google.com/android/repository/android_m2repository_r22.zip and put it to the C:\Users\shanmugam\AppData\Local\Xamarin\Xamarin.Android.Support.Design\23.0.1.3 directory.      App1.Droid                                               

    Error                      Reason: The remote name could not be resolved: 'dl-ssl.google.com'     App1.Droid                                        

    Error                      Download failed. Please download https://dl-ssl.google.com/android/repository/android_m2repository_r22.zip and put it to the C:\Users\shanmugam\AppData\Local\Xamarin\Xamarin.Android.Support.v7.AppCompat\23.0.1.3 directory.                App1.Droid                                        

    Error                      Reason: The remote name could not be resolved: 'dl-ssl.google.com'     App1.Droid                                        

    Error                      Reason: The remote name could not be resolved: 'dl-ssl.google.com'     App1.Droid                                        

    Error                      Download failed. Please download https://dl-ssl.google.com/android/repository/android_m2repository_r22.zip and put it to the C:\Users\shanmugam\AppData\Local\Xamarin\Xamarin.Android.Support.v7.MediaRouter\23.0.1.3 directory.                App1.Droid                                        

    Error                      Download failed. Please download https://dl-ssl.google.com/android/repository/android_m2repository_r22.zip and put it to the C:\Users\shanmugam\AppData\Local\Xamarin\Xamarin.Android.Support.v7.MediaRouter\23.0.1.3 directory.                App1.Droid                                        

    Error                      Please install package: 'Xamarin.Android.Support.Design' available in SDK installer. Java library file C:\Users\shanmugam\AppData\Local\Xamarin\Xamarin.Android.Support.Design\23.0.1.3\embedded\classes.jar doesn't exist.     App1.Droid                                        

    Error                      Download failed. Please download https://dl-ssl.google.com/android/repository/android_m2repository_r22.zip and put it to the C:\Users\shanmugam\AppData\Local\Xamarin\Xamarin.Android.Support.v7.AppCompat\23.0.1.3 directory.                App1.Droid                                        

    Error                      Reason: The remote name could not be resolved: 'dl-ssl.google.com'     App1.Droid                                        

    Error                      Reason: The remote name could not be resolved: 'dl-ssl.google.com'     App1.Droid                                        

    Error                      Reason: An exception occurred during a WebClient request.       App1.Droid                                        

    Error                      Please install package: 'Xamarin.Android.Support.v7.CardView' available in SDK installer. Java library file C:\Users\shanmugam\AppData\Local\Xamarin\Xamarin.Android.Support.v7.CardView\23.0.1.3\embedded\classes.jar doesn't exist.     App1.Droid                                        

    Error                      Please install package: 'Xamarin.Android.Support.v7.MediaRouter' available in SDK installer. Java library file C:\Users\shanmugam\AppData\Local\Xamarin\Xamarin.Android.Support.v7.MediaRouter\23.0.1.3\embedded\classes.jar doesn't exist.     App1.Droid                                        

    Error                      Reason: The remote name could not be resolved: 'dl-ssl.google.com'     App1.Droid                                        

    Error                      Download failed. Please download https://dl-ssl.google.com/android/repository/android_m2repository_r22.zip and put it to the C:\Users\shanmugam\AppData\Local\Xamarin\Xamarin.Android.Support.v4\23.0.1.3 directory.               App1.Droid                                               

    Error                      Reason: The remote name could not be resolved: 'dl-ssl.google.com'     App1.Droid                                        

    Error                      Reason: The remote name could not be resolved: 'dl-ssl.google.com'     App1.Droid                                        

    Error                      Download failed. Please download https://dl-ssl.google.com/android/repository/android_m2repository_r22.zip and put it to the C:\Users\shanmugam\AppData\Local\Xamarin\Xamarin.Android.Support.v7.CardView\23.0.1.3 directory.                App1.Droid                                        

    Error                      Download failed. Please download https://dl-ssl.google.com/android/repository/android_m2repository_r22.zip and put it to the C:\Users\shanmugam\AppData\Local\Xamarin\Xamarin.Android.Support.v4\23.0.1.3 directory.               App1.Droid                                               

    Error                      Download failed. Please download https://dl-ssl.google.com/android/repository/android_m2repository_r22.zip and put it to the C:\Users\shanmugam\AppData\Local\Xamarin\Xamarin.Android.Support.v7.MediaRouter\23.0.1.3 directory.                App1.Droid                                        

    Error                      Please install package: 'Xamarin.Android.Support.v4' available in SDK installer. Android resource directory C:\Users\shanmugam\AppData\Local\Xamarin\Xamarin.Android.Support.v4\23.0.1.3\embedded\./ doesn't exist.     App1.Droid                                        

    Error                      Please install package: 'Xamarin.Android.Support.v4' available in SDK installer. Java library file C:\Users\shanmugam\AppData\Local\Xamarin\Xamarin.Android.Support.v4\23.0.1.3\embedded\classes.jar doesn't exist.     App1.Droid                                        

    Error                      Download failed. Please download https://dl-ssl.google.com/android/repository/android_m2repository_r22.zip and put it to the C:\Users\shanmugam\AppData\Local\Xamarin\Xamarin.Android.Support.v7.CardView\23.0.1.3 directory.                App1.Droid                                        

    Error                      Download failed. Please download https://dl-ssl.google.com/android/repository/android_m2repository_r22.zip and put it to the C:\Users\shanmugam\AppData\Local\Xamarin\Xamarin.Android.Support.Design\23.0.1.3 directory.      App1.Droid                                               

    Error                      Reason: The remote name could not be resolved: 'dl-ssl.google.com'     App1.Droid                                        

    Error                      Download failed. Please download https://dl-ssl.google.com/android/repository/android_m2repository_r22.zip and put it to the C:\Users\shanmugam\AppData\Local\Xamarin\Xamarin.Android.Support.v4\23.0.1.3 directory.               App1.Droid                                               

    Error                      Please install package: 'Xamarin.Android.Support.Design' available in SDK installer. Android resource directory C:\Users\shanmugam\AppData\Local\Xamarin\Xamarin.Android.Support.Design\23.0.1.3\embedded\./ doesn't exist.     App1.Droid                                        

    Error                      Please install package: 'Xamarin.Android.Support.v7.MediaRouter' available in SDK installer. Java library file C:\Users\shanmugam\AppData\Local\Xamarin\Xamarin.Android.Support.v7.MediaRouter\23.0.1.3\embedded\libs/internal_impl-23.0.1.jar doesn't exist. App1.Droid                                        

    Error                      Please install package: 'Xamarin.Android.Support.v7.MediaRouter' available in SDK installer. Android resource directory C:\Users\shanmugam\AppData\Local\Xamarin\Xamarin.Android.Support.v7.MediaRouter\23.0.1.3\embedded\./ doesn't exist.     App1.Droid                                        

    Error                      Reason: The remote name could not be resolved: 'dl-ssl.google.com'     App1.Droid                                        

    Error                      Please install package: 'Xamarin.Android.Support.v4' available in SDK installer. Java library file C:\Users\shanmugam\AppData\Local\Xamarin\Xamarin.Android.Support.v4\23.0.1.3\embedded\libs/internal_impl-23.0.1.jar doesn't exist. App1.Droid                                        

    Error                      Please install package: 'Xamarin.Android.Support.v7.AppCompat' available in SDK installer. Android resource directory C:\Users\shanmugam\AppData\Local\Xamarin\Xamarin.Android.Support.v7.AppCompat\23.0.1.3\embedded\./ doesn't exist.     App1.Droid                                        

    Error                      Reason: The remote name could not be resolved: 'dl-ssl.google.com'     App1.Droid

    I have read some articles on google and  tried the following steps but no luck,

    1. Cleaned and re-built the project
    2. Deleted all files in this path “C:\Users\shanmugam\AppData\Local\Xamarin” and re-built the project
    3. Updated Android 6.0 (API 23)
    4. Restarted Visual Studio 2015
    5. Updated Xamarin latest version

    Please let me know if there is any solution for these errors. 

    Regards,

    Shanmugam M

    Friday, June 24, 2016 5:55 AM

Answers

  • Hi Shanmugam M,

    Please try to install the VS2015 Update2 first. Then create a new Xamarin.Forms.Portable project and compile this new project directly. If still have the same error message. I think the problem is in your Visual Studio. Otherwise, I think the cause is in your code.

    In this case, about Cross Platform Xamarin Android development. It has its' own support forum. I suggest you'd better post your problem to corresponding forum for better support.

    https://forums.xamarin.com/categories/android

    Thanks for your understanding.

    Best Regards,

    Lake Xiao


    • Edited by lake Xiao Tuesday, June 28, 2016 2:08 AM
    • Marked as answer by M.Shanmugam Friday, October 12, 2018 11:29 AM
    Tuesday, June 28, 2016 1:52 AM