Skip to content
This repository has been archived by the owner on Jan 9, 2023. It is now read-only.

Gradle issues #12

Closed
mit-mit opened this issue Mar 19, 2018 · 5 comments
Closed

Gradle issues #12

mit-mit opened this issue Mar 19, 2018 · 5 comments
Assignees

Comments

@mit-mit
Copy link
Member

mit-mit commented Mar 19, 2018

Example fails to compile for Android:

$ cd example/
$ flutter build apk
Initializing gradle...                                1.4s
Resolving dependencies...
* Error running Gradle:
Exit code 1 from: /Users/mit/tmp/foo/charts/charts_flutter/example/android/gradlew app:properties:
Starting a Gradle Daemon (subsequent builds will be faster)


FAILURE: Build failed with an exception.

* What went wrong:
Could not open cp_settings remapped class cache for 5u6igrr1mg7fnub4bkary45ki (/Users/mit/.gradle/caches/4.1/scripts-remapped/settings_2t5gwl8lf030jvwvr0wugl2fg/5u6igrr1mg7fnub4bkary45ki/cp_settings4dada6424967ba8dfea75e81c8880f7f).
> Could not open cp_settings generic class cache for settings file '/Users/mit/tmp/foo/charts/charts_flutter/example/android/settings.gradle' (/Users/mit/.gradle/caches/4.1/scripts/5u6igrr1mg7fnub4bkary45ki/cp_settings/cp_settings4dada6424967ba8dfea75e81c8880f7f).
   > Settings file '/Users/mit/tmp/foo/charts/charts_flutter/example/android/settings.gradle' should not contain a package statement.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

* Get more help at https://help.gradle.org

BUILD FAILED in 2s

Please review your Gradle project setup in the android/ folder.

@mit-mit
Copy link
Member Author

mit-mit commented Mar 19, 2018

cc @jakobr-google you mentioned a possible fix for this?

@jakobr-google
Copy link

Removing the package statements from settings.gradle, build.gradle, and app/build.gradle worked for me.

@mit-mit
Copy link
Member Author

mit-mit commented Mar 23, 2018

Fixed in 51529b6

@manthankanpariya
Copy link

Removing the package statements from settings.gradle, build.gradle, and app/build.gradle worked for me.

it's worked for me.

@DazzShooter
Copy link

Removing the package statements from settings.gradle, build.gradle, and app/build.gradle worked for me.

can you please tell me in a bit detail ... i don't understand what should i need to remove... from these files

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

No branches or pull requests

5 participants