flutter run fails android debug Compile on windows 10

809 views
Skip to first unread message

Rahul Balhara

unread,
May 24, 2017, 3:30:52 AM5/24/17
to Flutter Dev
Hi
when i debug app in flutter IDE  IntelliJ IDEA Community Edition 2017.1.3 x64.
I get error message as below

Launching lib\main.dart on Android SDK built for x86 64 in debug mode...
FAILURE: Build failed with an exception.

* Where:
Build file 'C:\Users\RAHUL BALHARA\IdeaProjects\myfluttersandbox\android\build.gradle' line: 20

* What went wrong:
A problem occurred evaluating root project 'android'.
> A problem occurred configuring project ':app'.
   > Failed to notify project evaluation listener.
      > com.android.build.gradle.tasks.factory.AndroidJavaCompile.setDependencyCacheDir(Ljava/io/File;)V

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
Error running gradle: Exit code 1 from: C:\ProgramFilesand\Android\AndroidStudioPreview\gradle\gradle-4.0-milestone-1\bin\gradle.bat app:properties

FAILURE: Build failed with an exception.

* Where:
Build file 'C:\Users\RAHUL BALHARA\IdeaProjects\myfluttersandbox\android\build.gradle' line: 20

* What went wrong:
A problem occurred evaluating root project 'android'.
> A problem occurred configuring project ':app'.
   > Failed to notify project evaluation listener.
      > com.android.build.gradle.tasks.factory.AndroidJavaCompile.setDependencyCacheDir(Ljava/io/File;)V

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
Finished with error: Gradle build failed: 1

Mikkel Ravn

unread,
May 24, 2017, 5:37:32 AM5/24/17
to Rahul Balhara, Flutter Dev

--
You received this message because you are subscribed to the Google Groups "Flutter Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to flutter-dev+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Mikkel Nygaard Ravn
Software Engineer

mr...@google.com

unread,
May 24, 2017, 12:16:49 PM5/24/17
to Flutter Dev
#10236 mentions a workaround.

Reply all
Reply to author
Forward
0 new messages