[英]When I start new project on android studio 3.5 it shows “my application syncing…” forever and ever
My android studio (ver 3.5) doens't sync, and shows "my application syncing..." forever. 我的android studio(3.5版)不同步,并始终显示“我的应用程序正在同步...”。 ( actually i couldn't wait more than 8 hours)
(实际上我不能等待超过8个小时)
I'm beginner in android studio. 我是android studio的新手。 first i've installed 3.2 ver and i had problems with Gradle which i couldn't solve.
首先,我已经安装了3.2版本,但Gradle出现了我无法解决的问题。 then i tried to update the SDK, NDK, Gradle and even whole android studio to ver3.5 .
然后我尝试将SDK,NDK,Gradle甚至整个android studio更新到ver3.5。
now when i open android studio and create a project , it doesn't even sync! 现在,当我打开android studio并创建一个项目时,它甚至不同步! it shows me that my application is still syncing (and never sync)(even i tried proxy and other networks) And there shows 1 error which is:
它显示了我的应用程序仍在同步(并且从未同步)(即使我尝试了代理和其他网络),并显示1错误,这是:
3:29 AM: Gradle sync failed: loader constraint violation: loader (instance of com/intellij/ide/plugins/cl/PluginClassLoader) previously initiated loading for a different type with name "gnu/trove/TObjectHashingStrategy (6 s 311 ms)
I even cannot change the Gradle codes or any other codes inside the android studio... 我什至无法更改Gradle代码或android studio中的任何其他代码...
尝试使“文件->使缓存无效/重新启动...”上的缓存无效
It seems like you are iranian. 看来您是伊朗人。 if you live in Iran you must use a VPN or proxy to use Android studio because of US sanction.
如果您居住在伊朗,由于美国的制裁,您必须使用VPN或代理才能使用Android Studio。 a better way is to change your DNS introduced in https://shecan.ir/ .
更好的方法是更改https://shecan.ir/中引入的DNS。
I tried to update/change the grdale files, but still got same problem. 我试图更新/更改grdale文件,但仍然遇到相同的问题。 Some masters tried to fix it but they couldnt :|
一些大师试图修复它,但是他们不能:| after 3 days of trying there was actually one only way so i removed the whole software and installed it again and it fixed ... :|
经过3天的尝试,实际上只有一种方法,因此我删除了整个软件,然后再次安装,并修复了...:|
I'm still confused 我还是很困惑
thanks you all <3 谢谢大家<3
1) Invalidate caches and restart 1)使缓存无效并重新启动
2) uncheck the Offline work in Global Gradle settings under settings NB: Have a stable internet connection for 2) 2)在设置NB下取消选中“全局Gradle”设置中的“ 脱机工作” : 2的互联网连接稳定
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.