YoussefKababe / pinch_zoom_image

A widget that makes picture pinch zoom, then return back to initial size and position when released.
https://pub.dartlang.org/packages/pinch_zoom_image
ISC License
52 stars 53 forks source link

Build failed in release mode #23

Open saelco opened 4 years ago

saelco commented 4 years ago

FAILURE: Build failed with an exception.

BUILD FAILED in 1s

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

madebyAyan commented 4 years ago

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 commented 4 years ago

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 commented 4 years ago

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.