Xamarinda loyihani qanday boshlash kerak?

O'rnatilgan win10, o'rnatilgan Visual Studio + Xamarin. Xamarin forumlari loyihasini yarataman va androidda ishlashga harakat qilaman:

enter image description here

Серьезность Код Описание Файл Строка Состояние подавления Ошибка error: package android.support.v7.internal.widget.ActivityChooserModel does not exist android.support.v7.internal.widget.ActivityChooserModel.OnChooseActivityListener c:\Users\MK\Documents\Visual Studio 2015\Projects\App2\App2\App2.Droid\obj\Debug\android\src\mono\android\support\v7\internal\widget\ActivityChooserModel_OnChooseActivityListenerImplementor.java 8
Ошибка error: package android.support.v7.internal.widget does not exist public boolean onChooseActivity (android.support.v7.internal.widget.ActivityChooserModel p0, android.content.Intent p1) c:\Users\MK\Documents\Visual Studio 2015\Projects\App2\App2\App2.Droid\obj\Debug\android\src\mono\android\support\v7\internal\widget\ActivityChooserModel_OnChooseActivityListenerImplementor.java 28
Ошибка error: package android.support.v7.internal.widget does not exist private native boolean n_onChooseActivity (android.support.v7.internal.widget.ActivityChooserModel p0, android.content.Intent p1); c:\Users\MK\Documents\Visual Studio 2015\Projects\App2\App2\App2.Droid\obj\Debug\android\src\mono\android\support\v7\internal\widget\ActivityChooserModel_OnChooseActivityListenerImplementor.java 33
Ошибка error: package android.support.v7.internal.widget.FitWindowsViewGroup does not exist android.support.v7.internal.widget.FitWindowsViewGroup.OnFitSystemWindowsListener c:\Users\MK\Documents\Visual Studio 2015\Projects\App2\App2\App2.Droid\obj\Debug\android\src\mono\android\support\v7\internal\widget\FitWindowsViewGroup_OnFitSystemWindowsListenerImplementor.java 8
Ошибка error: package android.support.v7.internal.widget.ViewStubCompat does not exist android.support.v7.internal.widget.ViewStubCompat.OnInflateListener c:\Users\MK\Documents\Visual Studio 2015\Projects\App2\App2\App2.Droid\obj\Debug\android\src\mono\android\support\v7\internal\widget\ViewStubCompat_OnInflateListenerImplementor.java 8
Ошибка error: package android.support.v7.internal.widget does not exist public void onInflate (android.support.v7.internal.widget.ViewStubCompat p0, android.view.View p1) c:\Users\MK\Documents\Visual Studio 2015\Projects\App2\App2\App2.Droid\obj\Debug\android\src\mono\android\support\v7\internal\widget\ViewStubCompat_OnInflateListenerImplementor.java 28
Ошибка error: package android.support.v7.internal.widget does not exist private native void n_onInflate (android.support.v7.internal.widget.ViewStubCompat p0, android.view.View p1); c:\Users\MK\Documents\Visual Studio 2015\Projects\App2\App2\App2.Droid\obj\Debug\android\src\mono\android\support\v7\internal\widget\ViewStubCompat_OnInflateListenerImplementor.java 33
Предупреждение Не найден компонент "System.ObjectModel", на который указывает ссылка.
Предупреждение An unexpected error occurred trying to initialize Android Designer. Please verify the Android SDK path and the Java Development Kit path on Tools->Options->Xamarin->Android Settings menu. Please see the logs for more details. 0

Qanday boshlash kerak?

1
Android operatsion tizimida ishlaydigan Android SDK i JDK. Vnimatelee chitay reportoy ob oshibkax
qo'shib qo'ydi muallif Dany DaKur, manba

6 javoblar

I'd start by addressing the end of your error: "Предупреждение An unexpected error occurred trying to initialize Android Designer. Please verify the Android SDK path and the Java Development Kit path on Tools->Options->Xamarin->Android Settings menu. Please see the logs for more details. 0"

ya'ni Android SDK yo'lini va JDK yo'lini tekshiring (agar kerak bo'lsa).

In Visual Studio this is under Tools > Options > Xamarin > Android Settings. I don't recall having to set any environment/path variables, I know Android Studio used to need things in the path but I think Visual Studio/Xamarin didn't ask for them, or maybe they were already set so it didn't need to ask.

1
qo'shib qo'ydi

I'd start by addressing the end of your error: "Предупреждение An unexpected error occurred trying to initialize Android Designer. Please verify the Android SDK path and the Java Development Kit path on Tools->Options->Xamarin->Android Settings menu. Please see the logs for more details. 0"

ya'ni Android SDK yo'lini va JDK yo'lini tekshiring (agar kerak bo'lsa).

In Visual Studio this is under Tools > Options > Xamarin > Android Settings. I don't recall having to set any environment/path variables, I know Android Studio used to need things in the path but I think Visual Studio/Xamarin didn't ask for them, or maybe they were already set so it didn't need to ask.

1
qo'shib qo'ydi

Xatolarni to'g'ri o'qiy olmayapman, ammo paketlar etishmayotganday ko'rinayaptimi?

Xamarin Android o'rnatish bo'yicha qo'llanma ?

1
qo'shib qo'ydi

Xamarin shaklidagi xatoliklar jurnalida sizning mahalliy kompyuteringizda paketlar to'liq o'rnatilmasligi mumkin. Ba'zi paketlar yo'q. Ushbu muammoni bartaraf etish uchun quyidagi amallarni bajarib ko'ring:

  1. Barcha Visual Studio nusxalarini yoping.
  2. C: \ Users \ UserName \ AppData \ Local \ papkasiga yo'naltirish.
  3. Xamarin papkasini nomini o'zgartirish yoki o'chirish
  4. Siz echimingizni VS bilan oching, loyihani qayta yarating.
  5. VS barcha paketlarni yuklab bo'lgunga qadar kuting. Mahalliy tarmoqqa qarab bir necha daqiqa ketadi.
0
qo'shib qo'ydi

Xamarin shaklidagi xatoliklar jurnalida sizning mahalliy kompyuteringizda paketlar to'liq o'rnatilmasligi mumkin. Ba'zi paketlar yo'q. Ushbu muammoni bartaraf etish uchun quyidagi amallarni bajarib ko'ring:

  1. Barcha Visual Studio nusxalarini yoping.
  2. C: \ Users \ UserName \ AppData \ Local \ papkasiga yo'naltirish.
  3. Xamarin papkasini nomini o'zgartirish yoki o'chirish
  4. Siz echimingizni VS bilan oching, loyihani qayta yarating.
  5. VS barcha paketlarni yuklab bo'lgunga qadar kuting. Mahalliy tarmoqqa qarab bir necha daqiqa ketadi.
0
qo'shib qo'ydi

Xamarin shaklidagi xatoliklar jurnalida sizning mahalliy kompyuteringizda paketlar to'liq o'rnatilmasligi mumkin. Ba'zi paketlar yo'q. Ushbu muammoni bartaraf etish uchun quyidagi amallarni bajarib ko'ring:

  1. Barcha Visual Studio nusxalarini yoping.
  2. C: \ Users \ UserName \ AppData \ Local \ papkasiga yo'naltirish.
  3. Xamarin papkasini nomini o'zgartirish yoki o'chirish
  4. Siz echimingizni VS bilan oching, loyihani qayta yarating.
  5. VS barcha paketlarni yuklab bo'lgunga qadar kuting. Mahalliy tarmoqqa qarab bir necha daqiqa ketadi.
0
qo'shib qo'ydi