2016-09-18 20 views
6

Starając się stworzyć i uruchomić pierwszą aplikację Xamarin wszystkie ustawienia domyślne, kompilacja nie powiedzie się z powodu następującego błędu:Nie można uruchomić projekt Xamarin Android

 
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. 

Próbowałem rozwiązania sugerowanego w How to resolve : unexpected error occured Initializing Android Designer" in VS 2015 with Xamarin. Jednak nic nie działa.

+0

Jakieś rozwiązanie tego? Nie jestem w stanie zbudować żadnego projektu Android, ale zgłaszam błędy w pliku styles.xml. – Mrunal

+0

Może to może pomóc: http://stackoverflow.com/questions/39548053/how-to-resolve-unexpected-error-occured-initializing-android-designer-in-vs-2 –

+0

Z jakiegoś powodu musiałem zainstaluj Visual Studio (aktualizacja 3). Podczas instalacji wybrałem niezbędne komponenty do Xamarin. Jednak wciąż mam ten sam problem. –

Odpowiedz

3

Miałem ten sam problem. Mam followed the link that you shared i pomyślnie rozwiązałem moje środowisko. Podam kilka wskazówek, aby upewnić się, że zostały podjęte wszystkie niezbędne kroki.

Wystąpił ten sam błąd "Wystąpił nieoczekiwany błąd podczas próby zainicjowania programu Android Designer. Sprawdź ścieżkę systemu Android SDK i ścieżkę zestawu Java Development Kit w menu Narzędzia-> Opcje-> Xamarin-> Ustawienia systemu Android. logi, aby uzyskać więcej szczegółów. "

1) Go to Tools | Options | Xamarin | Other, and under Xamarin for Visual Studio Updates, Check now for STABLE updates. Make sure you're running at least 4.2.0.680. You will have to close Visual Studio in the background as the updater is running--it'll warn you. Uninstalling and installing the cross-platform development tools from Visual Studio was not applying this update for me. I had to force the issue.

Aby sprawdzić Xamarion wersja, można wykonać czynności opisane w sekcji "Informacje o wersji": https://developer.xamarin.com/guides/cross-platform/troubleshooting/questions/version-logs/

enter image description here

Jeśli używasz systemu Windows i Visual Studio będzie: Pomoc > Informacje o Microsoft Visual Studio> Informacje o kopiowaniu [przycisk]

2) Now, as mentioned earlier, go to Tools, Android SDK Manager. I noticed my "Android SDK Tools" and "Cross Platform Tools" were out of date and updates were available. I accepted and applied the updates to version 24.4.1. BEAR WITH ME, THIS IS WHERE IT GETS TRICKY--it still didn't work.

Eck Android SDK w wersji, można wykonać czynności opisane w "Android Narzędzia SDK Platform-tools, Build-narzędzi" Section: https://developer.xamarin.com/guides/cross-platform/troubleshooting/questions/version-logs/

Jeśli używasz systemu Windows i Visual Studio będzie to: Wybierz Menedżer SDK Pasek ikon: enter image description here

3) ważne jest, aby powtórzyć krok 2, aktualizacja "Android SDK Tools", aż pójdziesz w wersji co najmniej 25.2.5

enter image description here

Po tym wszyscy pracowali dla mnie. Daj mi znać, jeśli masz jeszcze jakiś problem.

+0

Pracowałem też dla mnie. Wielkie dzięki. Bardzo doceniane. :) Nie mogę jednak wdrożyć aplikacji na emulatorze Xamarin Android Player. Mam nadzieję, że masz również rozwiązanie. –

+0

Jaki był następny błąd? – mqueirozcorreia

Powiązane problemy