Asked
Active
Viewed 919 times
2
-
Change network settings: try connecting in bridge. – Taufiq Rahman Nov 28 '16 at 09:50
-
I changed but still problem – asmaa ali Nov 28 '16 at 09:53
2 Answers
0
Check your JDK, and try to change it for 'latest' at -> Visual Studio -> Tools -> Options ->Xamarin -> Android Settings.

pjrki
- 248
- 1
- 3
- 15
0
You will get this error when first upgrading to Android SDK build tools v24 if you are not targeting JDK 8. For notes and various workarounds see: https://releases.xamarin.com/technical-bulletin-android-sdk-build-tools-24/
I have pasted some workarounds from the above link for your convenience:
- Update to Java JDK 8, and then make sure that JDK 8 is selected in the Xamarin preferences: Visual Studio: Tools > Options > Xamarin > Android Settings > Java Development Kit Location. Xamarin Studio (on Mac): Xamarin Studio > Preferences > Projects > SDK Locations > Android > Java SDK (JDK).
- Uninstall all Android SDK Build-tools versions 24 and higher via the Android SDK manager.
- Set the AndroidSdkBuildToolsVersion MSBuild property to an earlier version. For example, if you also have version 23.0.3 installed, you could add the following line within the top
<PropertyGroup>
element in the Android project .csproj file:<AndroidSdkBuildToolsVersion>23.0.3</AndroidSdkBuildToolsVersion>

Steven Mark Ford
- 3,372
- 21
- 32