Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Github cloned projects could'nt be run. #11

Open
JosephVoid opened this issue Apr 5, 2020 · 9 comments
Open

Github cloned projects could'nt be run. #11

JosephVoid opened this issue Apr 5, 2020 · 9 comments

Comments

@JosephVoid
Copy link

Whenever i try to run cloned projects from Github....It says "Running gradle task 'assembleDebug'.." and stays like that forever.But when i create new flutter projects and copy your code it works...any ideas on what could be the problem.

@emad-sure
Copy link

@JosephVoid actually this happened with me too ,
first time i opened pubspec.yaml and make pub get but it hangs on Running gradle task
you should run Pub upgrade then build again

@mihir2286
Copy link

Giving below error on Run every project .

Exception in thread "main" java.util.zip.ZipException: error in opening zip file
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.(ZipFile.java:225)
at java.util.zip.ZipFile.(ZipFile.java:155)
at java.util.zip.ZipFile.(ZipFile.java:169)
at org.gradle.wrapper.Install.unzip(Install.java:214)
at org.gradle.wrapper.Install.access$600(Install.java:27)
at org.gradle.wrapper.Install$1.call(Install.java:74)
at org.gradle.wrapper.Install$1.call(Install.java:48)
at org.gradle.wrapper.ExclusiveFileAccessManager.access(ExclusiveFileAccessManager.java:65)
at org.gradle.wrapper.Install.createDist(Install.java:48)
at org.gradle.wrapper.WrapperExecutor.execute(WrapperExecutor.java:128)
at org.gradle.wrapper.GradleWrapperMain.main(GradleWrapperMain.java:61)
[!] Gradle threw an error while trying to update itself. Retrying the update...
Finished with error: Gradle task assembleDebug failed with exit code 1

@Kishlay222
Copy link

continuously showing this error....
Launching lib\main.dart on AOSP on IA Emulator in debug mode...
Running Gradle task 'assembleDebug'...
Exception in thread "main" java.util.zip.ZipException: error in opening zip file
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.(ZipFile.java:225)
at java.util.zip.ZipFile.(ZipFile.java:155)
at java.util.zip.ZipFile.(ZipFile.java:169)
at org.gradle.wrapper.Install.unzip(Install.java:214)
at org.gradle.wrapper.Install.access$600(Install.java:27)
at org.gradle.wrapper.Install$1.call(Install.java:74)
at org.gradle.wrapper.Install$1.call(Install.java:48)
at org.gradle.wrapper.ExclusiveFileAccessManager.access(ExclusiveFileAccessManager.java:65)
at org.gradle.wrapper.Install.createDist(Install.java:48)
at org.gradle.wrapper.WrapperExecutor.execute(WrapperExecutor.java:128)
at org.gradle.wrapper.GradleWrapperMain.main(GradleWrapperMain.java:61)
[!] Gradle threw an error while trying to update itself. Retrying the update...
Running Gradle task 'assembleDebug'...
Exception in thread "main" java.util.zip.ZipException: error in opening zip file
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.(ZipFile.java:225)
at java.util.zip.ZipFile.(ZipFile.java:155)
at java.util.zip.ZipFile.(ZipFile.java:169)
at org.gradle.wrapper.Install.unzip(Install.java:214)
at org.gradle.wrapper.Install.access$600(Install.java:27)
at org.gradle.wrapper.Install$1.call(Install.java:74)
at org.gradle.wrapper.Install$1.call(Install.java:48)
at org.gradle.wrapper.ExclusiveFileAccessManager.access(ExclusiveFileAccessManager.java:65)
at org.gradle.wrapper.Install.createDist(Install.java:48)
at org.gradle.wrapper.WrapperExecutor.execute(WrapperExecutor.java:128)
at org.gradle.wrapper.GradleWrapperMain.main(GradleWrapperMain.java:61)
[!] Gradle threw an error while trying to update itself. Retrying the update...
Finished with error: Gradle task assembleDebug failed with exit code 1

@deepdhar
Copy link

I'm having the same issue. The cloned projects from GIT didn't run at all, infact it doesn't detect dependencies too when I click on get dependencies. Why am I facing this, kindly help?

@deepakDOTexe
Copy link

I am a newbie to android studio so I don't know exactly what the problem was, but in my android/gradle/build.gradle file of the cloned project I edited the following line

classpath 'com.android.tools.build:gradle:3.5.3'

to

classpath 'com.android.tools.build:gradle:3.5.0'

which was similar to the projects created by me offline. This might be due to running an older version of this gradle stuff on my machine. I am not sure but it worked for me for the time being.

@rohanchauhan
Copy link

You can try running with flutter run command with a verbose flag.

  1. It's because Gradle cannot be downloaded because you haven't added Android Studio to Windows Firewall exceptions.
  2. It's the migration problem for which you can make similar changes as I have suggested here: Upgrading pre 1.12 Android projects mi_card_flutter#28

After doing these two things, I am able to run all of the projects. Hope this helps!

@shyam-999
Copy link

when will this 'assembleDebug'... gonna end ???

@Delocalized-electron
Copy link

when will this 'assembleDebug'... gonna end ???

Add flutter to the PATH and then retry

@aviralguptaa
Copy link

Go to file>Project Structure>and see project SDK most of the time it is not set set it.
Copy the SDF from SDK manager from top right of your android studio window.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

10 participants