Android Studio无法在Ubuntu 20.04中启动,因为我从Andrioid Studio设置中编辑了vmoptions

时间:2020-04-30 05:20:39

标签: android-studio ubuntu ubuntu-20.04

Android Studio不在Ubuntu 20.04中启动,因为我在Android Studio设置中编辑了vmoptions。

运行public static (string, string, double, string) LoadWeather(string city_a) { int cityId = obtain_Id(city_a); if (cityId != 0) { using (WebClient web = new WebClient()) { string json = new WebClient().DownloadString($"https://api.openweathermap.org/data/2.5/weather?id={cityId}&appid=67f9bc5970b49b875ccecec84f849300"); var items = JsonConvert.DeserializeObject<WeatherModel.Root>(json); //Trying to acquire the icon from the weather list string icon = items.weather[0]["icon"]; string url = $"http://openweathermap.org/img/wn/{icon}@2x.png"; string city = string.Format($"{items.name}"); string country = string.Format($"{items.sys.country}"); double temp = items.main.temp - 276; //city = cityName; //country = countryName; //temp = temperature; return (city, country, temp, url); } } else { return ("0", "0", 0.0, "0"); } } 后的终端输出:

./studio.sh

A screenshot of the terminal output and the vmoptions in text editor:

1 个答案:

答案 0 :(得分:0)

回家删除.config文件