简体   繁体   English

当我在android studio 3.5上启动新项目时,它会显示“我的应用程序正在同步……”

[英]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.

相关问题 我在Android Studio中启动了新应用程序,同时同步文件在Gradle同步文件中出错 - I started new application in my Android Studio, while syncing the files got error on Gradle syncing file Gradle无法在新的Android Studio 2.0中同步我的项目 - Gradle is failing on syncing my project in the new Android Studio 2.0 当我从 Android Studio 在我的 Android 手机上运行我的应用程序时,它显示空白屏幕 - When I run my application on my Android Phone from Android Studio, it shows blank screen 因此,当我在 android 工作室开始新项目时,构建 output 显示“连接被拒绝:连接” - So when I started new project in android studio, where the build output shows “Connection refused: connect” 在 Android Studio 上同步新项目时发生 Firebase 错误(ASCII 错误) - Firebase error while syncing a new project on Android Studio (ASCII Error) 将项目与Gradle文件同步时,如何停止Android Studio运行gradle任务? - How to stop Android Studio from running my gradle task when syncing project with Gradle files? 当我尝试在 Android 工作室上执行我的项目时。 它显示以下错误 - When I tried to execute my project on Android studio. It shows following error 将项目SDK更改为Android Pie时,Android Studio同步错误 - Android Studio syncing error when changing project SDK to android pie 每当我启动新的Android Studio项目时,都会发生此错误 - Each time when I start new Android studio project this error occurred IDE Android Studio 错误 开始创建新项目时 - IDE Android Studio Error When start creating a new project
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM