pinch_zoom_image icon indicating copy to clipboard operation
pinch_zoom_image copied to clipboard

Build failed in release mode

Open saelco opened this issue 5 years ago • 3 comments

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.

saelco avatar Feb 19 '20 02:02 saelco

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.

madebyAyan avatar Apr 06 '20 12:04 madebyAyan

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.

furkankurt avatar May 26 '20 21:05 furkankurt

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.

AxesandGrinds avatar May 27 '20 16:05 AxesandGrinds