2016-09-18 3 views
6

चलाने में असमर्थ, निर्माण निम्नलिखित त्रुटि के साथ विफल:बना सकते हैं और सभी डिफ़ॉल्ट के साथ पहली Xamarin अनुप्रयोग चलाने के लिए प्रयास करते समय Xamarin एंड्रॉयड परियोजना

 
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. 

मैं समाधान How to resolve : unexpected error occured Initializing Android Designer" in VS 2015 with Xamarin में सुझाव दिया की कोशिश की। हालांकि, कुछ भी काम नहीं करता है।

+0

इसके लिए कोई समाधान? मैं कोई एंड्रॉइड प्रोजेक्ट बनाने में सक्षम नहीं हूं, यह शैलियों.एक्सएमएल पर त्रुटियों को फेंकता है। – Mrunal

+0

शायद यह मदद कर सकता है: http://stackoverflow.com/questions/39548053/how-to-resolve-unexpected-error-occured-initializing-android-designer-in-vs-2 –

+0

किसी कारण से मुझे फिर से- विजुअल स्टूडियो स्थापित करें (अपडेट 3)। स्थापना के दौरान, मैंने Xamarin के लिए आवश्यक घटकों का चयन किया। हालांकि, मुझे अभी भी एक ही समस्या का सामना करना पड़ रहा है। –

उत्तर

3

मुझे एक ही समस्या थी। मेरे पास followed the link that you shared है और सफलतापूर्वक मेरे पर्यावरण को हल किया है। तो मैं यह सुनिश्चित करने के लिए कुछ संकेत दूंगा कि सभी आवश्यक कदम उठाए गए थे।

मुझे एक ही त्रुटि हो रही थी "एंड्रॉइड डिजाइनर को शुरू करने की कोशिश में एक अनपेक्षित त्रुटि आई। कृपया एंड्रॉइड एसडीके पथ और जावा डेवलपमेंट किट पथ को टूल्स-> विकल्प-> एक्समरिन-> एंड्रॉइड सेटिंग्स मेनू पर सत्यापित करें। कृपया देखें अधिक जानकारी के लिए लॉग इन करें। "

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.

Xamarion संस्करण की जाँच करने के लिए, आप "संस्करण जानकारी" खंड में दिए चरणों का पालन कर सकते हैं: https://developer.xamarin.com/guides/cross-platform/troubleshooting/questions/version-logs/

enter image description here

आप Windows और विजुअल स्टूडियो का उपयोग कर रहे हैं, तो यह हो जाएगा: सहायता > माइक्रोसॉफ्ट विजुअल स्टूडियो के बारे में> कॉपी जानकारी [बटन]

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 एंड्रॉयड एसडीके संस्करण, आप में चरणों का पालन कर सकते हैं "एंड्रॉयड एसडीके उपकरण, मंच-उपकरण, निर्माण उपकरण" अनुभाग: https://developer.xamarin.com/guides/cross-platform/troubleshooting/questions/version-logs/

आप Windows और विजुअल स्टूडियो यह हो जाएगा उपयोग कर रहे हैं: एसडीके प्रबंधक का चयन करें टूलबार आइकन: enter image description here

3) यह चरण 2 को दोहराने के लिए, अद्यतन करने "एंड्रॉयड एसडीके उपकरण" जब तक आप कम से कम संस्करण 25.2.5

enter image description here

जाना उसके बाद महत्वपूर्ण है सभी ने मेरे लिए काम किया है। अगर आपको कोई और समस्या है तो कृपया मुझे बताएं।

+0

मैंने भी मेरे लिए काम किया। बहुत बहुत धन्यवाद। बहुत सराहना की। :) हालांकि, मैं Xamarin एंड्रॉइड प्लेयर एमुलेटर पर ऐप को तैनात करने में असमर्थ हूं। मुझे उम्मीद है कि आपके पास भी इसका समाधान होगा। –

+0

अगली त्रुटि क्या थी? – mqueirozcorreia