Error on creating new project with Prism for Xamarin.Forms












0















While creating a new Prism for Xamarin.Forms project with VS2017 I'm getting the following errors:




Could not find android.jar for API Level . This means the Android SDK platform for API Level is not installed. Either install it in the Android SDK Manager (Tools > Open Android SDK Manager...), or change your Xamarin.Android project to target an API version that is installed. (C:UsersyoavAppDataLocalAndroidsdkplatformsandroid-android.jar missing.) BlankApp3.Android



Error NU1202 Package Xamarin.Android.Support.Design 27.0.2.1 is not compatible with monoandroid80 (MonoAndroid,Version=v8.0). Package Xamarin.Android.Support.Design 27.0.2.1 supports: monoandroid81 (MonoAndroid,Version=v8.1)



Error NU1202 Package Xamarin.Android.Support.v4 27.0.2.1 is not compatible with monoandroid80 (MonoAndroid,Version=v8.0). Package Xamarin.Android.Support.v4 27.0.2.1 supports: monoandroid81 (MonoAndroid,Version=v8.1)



Error NU1202 Package Xamarin.Android.Support.v7.AppCompat 27.0.2.1 is not compatible with monoandroid80 (MonoAndroid,Version=v8.0). Package Xamarin.Android.Support.v7.AppCompat 27.0.2.1 supports: monoandroid81 (MonoAndroid,Version=v8.1)



Error NU1202 Package Xamarin.Android.Support.v7.CardView 27.0.2.1 is not compatible with monoandroid80 (MonoAndroid,Version=v8.0). Package Xamarin.Android.Support.v7.CardView 27.0.2.1 supports: monoandroid81 (MonoAndroid,Version=v8.1)



Error NU1202 Package Xamarin.Android.Support.v7.MediaRouter 27.0.2.1 is not compatible with monoandroid80 (MonoAndroid,Version=v8.0). Package Xamarin.Android.Support.v7.MediaRouter 27.0.2.1 supports: monoandroid81 (MonoAndroid,Version=v8.1)




Can anyone please tell me how to avoid such errors?










share|improve this question




















  • 4





    1) Do you have the Android API 8.1 SDK installed (as per stated in the first error), ideally you should have Oreo/9 installed and set your project's compile target to that. 2) The project is trying to restore the android support packages for Android 8.1 but your project is set to a Xamarin Android Compile target of 8.0 (stackoverflow.com/questions/49246580/…)

    – SushiHangover
    Jan 20 at 15:21








  • 1





    1, Make sure you have installed API 8.1 SDK. 2, Set your target version and compile version both to API8.1. If it still does not work, clean solution, then delete the bin and obj folders under your project and then rebuild solution.

    – AbbyWang
    Jan 21 at 3:26
















0















While creating a new Prism for Xamarin.Forms project with VS2017 I'm getting the following errors:




Could not find android.jar for API Level . This means the Android SDK platform for API Level is not installed. Either install it in the Android SDK Manager (Tools > Open Android SDK Manager...), or change your Xamarin.Android project to target an API version that is installed. (C:UsersyoavAppDataLocalAndroidsdkplatformsandroid-android.jar missing.) BlankApp3.Android



Error NU1202 Package Xamarin.Android.Support.Design 27.0.2.1 is not compatible with monoandroid80 (MonoAndroid,Version=v8.0). Package Xamarin.Android.Support.Design 27.0.2.1 supports: monoandroid81 (MonoAndroid,Version=v8.1)



Error NU1202 Package Xamarin.Android.Support.v4 27.0.2.1 is not compatible with monoandroid80 (MonoAndroid,Version=v8.0). Package Xamarin.Android.Support.v4 27.0.2.1 supports: monoandroid81 (MonoAndroid,Version=v8.1)



Error NU1202 Package Xamarin.Android.Support.v7.AppCompat 27.0.2.1 is not compatible with monoandroid80 (MonoAndroid,Version=v8.0). Package Xamarin.Android.Support.v7.AppCompat 27.0.2.1 supports: monoandroid81 (MonoAndroid,Version=v8.1)



Error NU1202 Package Xamarin.Android.Support.v7.CardView 27.0.2.1 is not compatible with monoandroid80 (MonoAndroid,Version=v8.0). Package Xamarin.Android.Support.v7.CardView 27.0.2.1 supports: monoandroid81 (MonoAndroid,Version=v8.1)



Error NU1202 Package Xamarin.Android.Support.v7.MediaRouter 27.0.2.1 is not compatible with monoandroid80 (MonoAndroid,Version=v8.0). Package Xamarin.Android.Support.v7.MediaRouter 27.0.2.1 supports: monoandroid81 (MonoAndroid,Version=v8.1)




Can anyone please tell me how to avoid such errors?










share|improve this question




















  • 4





    1) Do you have the Android API 8.1 SDK installed (as per stated in the first error), ideally you should have Oreo/9 installed and set your project's compile target to that. 2) The project is trying to restore the android support packages for Android 8.1 but your project is set to a Xamarin Android Compile target of 8.0 (stackoverflow.com/questions/49246580/…)

    – SushiHangover
    Jan 20 at 15:21








  • 1





    1, Make sure you have installed API 8.1 SDK. 2, Set your target version and compile version both to API8.1. If it still does not work, clean solution, then delete the bin and obj folders under your project and then rebuild solution.

    – AbbyWang
    Jan 21 at 3:26














0












0








0








While creating a new Prism for Xamarin.Forms project with VS2017 I'm getting the following errors:




Could not find android.jar for API Level . This means the Android SDK platform for API Level is not installed. Either install it in the Android SDK Manager (Tools > Open Android SDK Manager...), or change your Xamarin.Android project to target an API version that is installed. (C:UsersyoavAppDataLocalAndroidsdkplatformsandroid-android.jar missing.) BlankApp3.Android



Error NU1202 Package Xamarin.Android.Support.Design 27.0.2.1 is not compatible with monoandroid80 (MonoAndroid,Version=v8.0). Package Xamarin.Android.Support.Design 27.0.2.1 supports: monoandroid81 (MonoAndroid,Version=v8.1)



Error NU1202 Package Xamarin.Android.Support.v4 27.0.2.1 is not compatible with monoandroid80 (MonoAndroid,Version=v8.0). Package Xamarin.Android.Support.v4 27.0.2.1 supports: monoandroid81 (MonoAndroid,Version=v8.1)



Error NU1202 Package Xamarin.Android.Support.v7.AppCompat 27.0.2.1 is not compatible with monoandroid80 (MonoAndroid,Version=v8.0). Package Xamarin.Android.Support.v7.AppCompat 27.0.2.1 supports: monoandroid81 (MonoAndroid,Version=v8.1)



Error NU1202 Package Xamarin.Android.Support.v7.CardView 27.0.2.1 is not compatible with monoandroid80 (MonoAndroid,Version=v8.0). Package Xamarin.Android.Support.v7.CardView 27.0.2.1 supports: monoandroid81 (MonoAndroid,Version=v8.1)



Error NU1202 Package Xamarin.Android.Support.v7.MediaRouter 27.0.2.1 is not compatible with monoandroid80 (MonoAndroid,Version=v8.0). Package Xamarin.Android.Support.v7.MediaRouter 27.0.2.1 supports: monoandroid81 (MonoAndroid,Version=v8.1)




Can anyone please tell me how to avoid such errors?










share|improve this question
















While creating a new Prism for Xamarin.Forms project with VS2017 I'm getting the following errors:




Could not find android.jar for API Level . This means the Android SDK platform for API Level is not installed. Either install it in the Android SDK Manager (Tools > Open Android SDK Manager...), or change your Xamarin.Android project to target an API version that is installed. (C:UsersyoavAppDataLocalAndroidsdkplatformsandroid-android.jar missing.) BlankApp3.Android



Error NU1202 Package Xamarin.Android.Support.Design 27.0.2.1 is not compatible with monoandroid80 (MonoAndroid,Version=v8.0). Package Xamarin.Android.Support.Design 27.0.2.1 supports: monoandroid81 (MonoAndroid,Version=v8.1)



Error NU1202 Package Xamarin.Android.Support.v4 27.0.2.1 is not compatible with monoandroid80 (MonoAndroid,Version=v8.0). Package Xamarin.Android.Support.v4 27.0.2.1 supports: monoandroid81 (MonoAndroid,Version=v8.1)



Error NU1202 Package Xamarin.Android.Support.v7.AppCompat 27.0.2.1 is not compatible with monoandroid80 (MonoAndroid,Version=v8.0). Package Xamarin.Android.Support.v7.AppCompat 27.0.2.1 supports: monoandroid81 (MonoAndroid,Version=v8.1)



Error NU1202 Package Xamarin.Android.Support.v7.CardView 27.0.2.1 is not compatible with monoandroid80 (MonoAndroid,Version=v8.0). Package Xamarin.Android.Support.v7.CardView 27.0.2.1 supports: monoandroid81 (MonoAndroid,Version=v8.1)



Error NU1202 Package Xamarin.Android.Support.v7.MediaRouter 27.0.2.1 is not compatible with monoandroid80 (MonoAndroid,Version=v8.0). Package Xamarin.Android.Support.v7.MediaRouter 27.0.2.1 supports: monoandroid81 (MonoAndroid,Version=v8.1)




Can anyone please tell me how to avoid such errors?







c# android xamarin xamarin.forms prism






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Jan 22 at 9:59









Shadow Wizard

57.5k19112176




57.5k19112176










asked Jan 20 at 15:10









YoavYoav

929




929








  • 4





    1) Do you have the Android API 8.1 SDK installed (as per stated in the first error), ideally you should have Oreo/9 installed and set your project's compile target to that. 2) The project is trying to restore the android support packages for Android 8.1 but your project is set to a Xamarin Android Compile target of 8.0 (stackoverflow.com/questions/49246580/…)

    – SushiHangover
    Jan 20 at 15:21








  • 1





    1, Make sure you have installed API 8.1 SDK. 2, Set your target version and compile version both to API8.1. If it still does not work, clean solution, then delete the bin and obj folders under your project and then rebuild solution.

    – AbbyWang
    Jan 21 at 3:26














  • 4





    1) Do you have the Android API 8.1 SDK installed (as per stated in the first error), ideally you should have Oreo/9 installed and set your project's compile target to that. 2) The project is trying to restore the android support packages for Android 8.1 but your project is set to a Xamarin Android Compile target of 8.0 (stackoverflow.com/questions/49246580/…)

    – SushiHangover
    Jan 20 at 15:21








  • 1





    1, Make sure you have installed API 8.1 SDK. 2, Set your target version and compile version both to API8.1. If it still does not work, clean solution, then delete the bin and obj folders under your project and then rebuild solution.

    – AbbyWang
    Jan 21 at 3:26








4




4





1) Do you have the Android API 8.1 SDK installed (as per stated in the first error), ideally you should have Oreo/9 installed and set your project's compile target to that. 2) The project is trying to restore the android support packages for Android 8.1 but your project is set to a Xamarin Android Compile target of 8.0 (stackoverflow.com/questions/49246580/…)

– SushiHangover
Jan 20 at 15:21







1) Do you have the Android API 8.1 SDK installed (as per stated in the first error), ideally you should have Oreo/9 installed and set your project's compile target to that. 2) The project is trying to restore the android support packages for Android 8.1 but your project is set to a Xamarin Android Compile target of 8.0 (stackoverflow.com/questions/49246580/…)

– SushiHangover
Jan 20 at 15:21






1




1





1, Make sure you have installed API 8.1 SDK. 2, Set your target version and compile version both to API8.1. If it still does not work, clean solution, then delete the bin and obj folders under your project and then rebuild solution.

– AbbyWang
Jan 21 at 3:26





1, Make sure you have installed API 8.1 SDK. 2, Set your target version and compile version both to API8.1. If it still does not work, clean solution, then delete the bin and obj folders under your project and then rebuild solution.

– AbbyWang
Jan 21 at 3:26












1 Answer
1






active

oldest

votes


















1














The error you are getting is quite clear about the problem. You are trying to use the Android Support packages for API version 27 which would be Android 8.1, while targeting Android 8.0. You have a couple of options:




  1. Ensure that you have the 8.1 SDK installed on your machine and re-target your Android project to 8.1.


  2. Downgrade the Android Support packages to 26.1.0.1


  3. Upgrade the Android Support packages to 28.0.0.1 as the Xamarin.Android team now cross compiles the Android Support libraries to support Android projects that are targeting older SDK versions back to 6.0.







share|improve this answer























    Your Answer






    StackExchange.ifUsing("editor", function () {
    StackExchange.using("externalEditor", function () {
    StackExchange.using("snippets", function () {
    StackExchange.snippets.init();
    });
    });
    }, "code-snippets");

    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "1"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f54277807%2ferror-on-creating-new-project-with-prism-for-xamarin-forms%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    1














    The error you are getting is quite clear about the problem. You are trying to use the Android Support packages for API version 27 which would be Android 8.1, while targeting Android 8.0. You have a couple of options:




    1. Ensure that you have the 8.1 SDK installed on your machine and re-target your Android project to 8.1.


    2. Downgrade the Android Support packages to 26.1.0.1


    3. Upgrade the Android Support packages to 28.0.0.1 as the Xamarin.Android team now cross compiles the Android Support libraries to support Android projects that are targeting older SDK versions back to 6.0.







    share|improve this answer




























      1














      The error you are getting is quite clear about the problem. You are trying to use the Android Support packages for API version 27 which would be Android 8.1, while targeting Android 8.0. You have a couple of options:




      1. Ensure that you have the 8.1 SDK installed on your machine and re-target your Android project to 8.1.


      2. Downgrade the Android Support packages to 26.1.0.1


      3. Upgrade the Android Support packages to 28.0.0.1 as the Xamarin.Android team now cross compiles the Android Support libraries to support Android projects that are targeting older SDK versions back to 6.0.







      share|improve this answer


























        1












        1








        1







        The error you are getting is quite clear about the problem. You are trying to use the Android Support packages for API version 27 which would be Android 8.1, while targeting Android 8.0. You have a couple of options:




        1. Ensure that you have the 8.1 SDK installed on your machine and re-target your Android project to 8.1.


        2. Downgrade the Android Support packages to 26.1.0.1


        3. Upgrade the Android Support packages to 28.0.0.1 as the Xamarin.Android team now cross compiles the Android Support libraries to support Android projects that are targeting older SDK versions back to 6.0.







        share|improve this answer













        The error you are getting is quite clear about the problem. You are trying to use the Android Support packages for API version 27 which would be Android 8.1, while targeting Android 8.0. You have a couple of options:




        1. Ensure that you have the 8.1 SDK installed on your machine and re-target your Android project to 8.1.


        2. Downgrade the Android Support packages to 26.1.0.1


        3. Upgrade the Android Support packages to 28.0.0.1 as the Xamarin.Android team now cross compiles the Android Support libraries to support Android projects that are targeting older SDK versions back to 6.0.








        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Jan 25 at 4:10









        Dan S.Dan S.

        3,0762820




        3,0762820
































            draft saved

            draft discarded




















































            Thanks for contributing an answer to Stack Overflow!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f54277807%2ferror-on-creating-new-project-with-prism-for-xamarin-forms%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            Homophylophilia

            Updating UILabel text programmatically using a function

            Cloud Functions - OpenCV Videocapture Read method fails for larger files from cloud storage