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

Build failed in release mode #23

Open
saelco opened this issue Feb 19, 2020 · 3 comments
Open

Build failed in release mode #23

saelco opened this issue Feb 19, 2020 · 3 comments

Comments

@saelco
Copy link

saelco commented Feb 19, 2020

FAILURE: Build failed with an exception.

  • What went wrong:
    A problem occurred configuring root project 'pinch_zoom_image'.

The SDK directory 'C:\flutter.pub-cache\hosted\pub.dartlang.org\pinch_zoom_image_updated-0.2.6\android\Users\youssef\Library\Android\sdk' does not exist.

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

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

BUILD FAILED in 1s

Finished with error: The plugin pinch_zoom_image_updated could not be built due to the issue above.

@madebyAyan
Copy link

madebyAyan commented Apr 6, 2020

I've had the same problem and fixed it by setting the correct SDK path in the package files.

Firstly, navigate to the directory where the local.properties file is located. For me it was,
C:/flutter/.pub-cache/hosted/pub.dartlang.org/pinch_zoom_image_updated-0.2.6/android/

And then open the local.properties file in an editor and modify the contents so that it points to the location of where your android and flutter SDK are located.
After modifying, it should look something like this,

sdk.dir=C:\\NVPACK\\android-sdk-windows
flutter.sdk=C:\\flutter
flutter.versionName=0.0.1

And that should solve the problem.

@furkankurt
Copy link

I created new repo. Owner of this project don't accept pull requests. You can use mine.
https://pub.dartlang.org/packages/pinch_zoom_image_last
If there is an issue, you can open an issue of my github repo.

@AxesandGrinds
Copy link

I created new repo. Owner of this project don't accept pull requests. You can use mine.
https://pub.dartlang.org/packages/pinch_zoom_image_last
If there is an issue, you can open an issue of my github repo.

Thank you so much @furkankurt , your repo saved my code because even pinch_zoom_image_updated was giving me problems.

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

4 participants