btastic / flutter_native_image

Native Flutter Image tools
Other
340 stars 138 forks source link

Please update your plugin to work with the latest version of flutter #62

Closed sarinupreti closed 4 years ago

sarinupreti commented 4 years ago

getting this error while building :

Execution failed for task ':flutter_native_image:verifyReleaseResources'.
> 1 exception was raised by workers:
  com.android.builder.internal.aapt.v2.Aapt2Exception: Android resource linking failed
  C:\**\build\flutter_native_image\intermediates\res\merged\release\values\values.xml:236: error: resource android:attr/fontVariationSettings not found.
  C:\**\build\flutter_native_image\intermediates\res\merged\release\values\values.xml:237: error: resource android:attr/ttcIndex not found.
  error: failed linking references.

flutter doctor:


[√] Flutter (Channel stable, v1.12.13+hotfix.5, on Microsoft Windows [Version 10.0.18363.535], locale en-US)
    • Flutter version 1.12.13+hotfix.5 at C:\Users\sarin\Documents\flutter
    • Framework revision 27321ebbad (4 days ago), 2019-12-10 18:15:01 -0800
    • Engine revision 2994f7e1e6
    • Dart version 2.7.0

[√] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
    • Android SDK at C:\Program Files\Android\sdk
    • Android NDK location not configured (optional; useful for native profiling support)
    • Platform android-29, build-tools 29.0.2
    • ANDROID_HOME = C:\Program Files\Android\sdk\tools
    • Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
    • Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b03)
    • All Android licenses accepted.

[√] Android Studio (version 3.5)
    • Android Studio at C:\Program Files\Android\Android Studio
    • Flutter plugin version 42.0.1
    • Dart plugin version 191.8593
    • Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b03)

[√] VS Code (version 1.41.0)
    • VS Code at C:\Users\sarin\AppData\Local\Programs\Microsoft VS Code
    • Flutter extension version 3.7.1
0xshipthecode commented 4 years ago

The current commit seems to work with the newest flutter. You can make it work by changing your pubspec.yaml to

flutter_native_image: git: url: https://github.com/btastic/flutter_native_image.git ref: 5d71bdc5624a846a1e973a43018f7b17d636fdc8

and flutter run --release should work.

Unfortunately the version 0.0.4 listed in pub.dev doesn't work for me. So maybe it's just a matter of releasing a 0.0.5?

alaindixon commented 4 years ago

Up, any fixing?

CedSW commented 4 years ago

you can achieve pretty much the same thing with this package https://pub.dev/packages/image

btastic commented 4 years ago

just upgraded to android x. https://github.com/btastic/flutter_native_image/commit/df1ec7e3e9e57f1a8015e86f40a89395ff9ecd57 working on latest flutter version