You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, this flutter_sqlcipher plugin appears to no longer be compatible with the latest versions of flutter in the beta channel (as well as on dev and master channels). I have reported on the main flutter github issues page in case it was a larger issue with changes in flutter, but it was requested that I raise this individually on the plugins I have found issue with, hence this issue.
This is all noted in the following issue: flutter/flutter#45808 and detail included below which includes steps to reproduce:
Hello, very simply, switching from the stable to beta channel of flutter caused an issue with a "flutter build apk --release" causing the following error:
Execution failed for task ':flutter_isolate:verifyReleaseResources'.
> 1 exception was raised by workers:
com.android.builder.internal.aapt.v2.Aapt2Exception: Android resource linking failed
C:\Users\example\Documents\bsl\flutter_app_fail\flutter_app_fail\build\flutter_isolate\intermediates\res\merged\release\values\values.xml:236: error: resource android:attr/fontVariationSettings not found.
C:\Users\example\Documents\bsl\flutter_app_fail\flutter_app_fail\build\flutter_isolate\intermediates\res\merged\release\values\values.xml:237: error: resource android:attr/ttcIndex not found.
error: failed linking references.
This is when targetting Android API 29 and when including either "flutter_isolate" or "flutter_sqlcipher" in pubspec.yaml
This is reproducible and I just ran through the following myself on a blank project:
Steps to Reproduce
Switch to the flutter beta channel: flutter channel beta
Create a new blank flutter application
Change the android/app/build.gradle to set the minSdkVersion to 21, targetSdkVersion to 29 and compileSdkVersion to 29
In the pubspec.yaml add in either "flutter_isolate: ^1.0.0+10" or "flutter_sqlcipher: ^0.4.3" to the dependencies section. These are the only two I have found that reproduce the issue.
Compile a release apk using: flutter build apk --release
Observe error message as noted here
Target Platform: Android Target OS version/browser: API 29 Devices: N/A - Build
$ flutter analyze
Analyzing flutter_app_fail...
No issues found! (ran in 6.1s)
$ flutter doctor -v
[√] Flutter (Channel beta, v1.11.0, on Microsoft Windows [Version 10.0.18362.116], locale en-GB)
• Flutter version 1.11.0 at C:\Users\burra\Programs\flutter
• Framework revision 856a90e67c (3 weeks ago), 2019-11-08 18:00:01 -0800
• Engine revision af04338413
• Dart version 2.7.0
[!] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
• Android SDK at C:\Users\burra\AppData\Local\Android\sdk
• Android NDK location not configured (optional; useful for native profiling support)
• Platform android-29, build-tools 29.0.2
• 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 40.2.2
• Dart plugin version 191.8593
• Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b03)
[!] IntelliJ IDEA Community Edition (version 2018.3)
• IntelliJ at C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2018.3.3
X Flutter plugin not installed; this adds Flutter specific functionality.
X Dart plugin not installed; this adds Dart specific functionality.
• For information about installing plugins, see
https://flutter.dev/intellij-setup/#installing-the-plugins
[!] VS Code, 64-bit edition (version 1.30.2)
• VS Code at C:\Program Files\Microsoft VS Code
X Flutter extension not installed; install from
https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter
[!] Connected device
! No devices available
! Doctor found issues in 3 categories.
The text was updated successfully, but these errors were encountered:
Hi @artob, as you have been most active on flutter_sqlcipher recently, I wanted to ask if this is something you might be able to help us with?
We are in a bit of a pickle, as we needed to start using the flutter beta channel to bring in the fix from flutter: flutter/flutter#9211 however this means we are stuck with this issue of using flutter_sqlcipher not allowing us to a release build.
In the flutter ticket I raised flutter/flutter#45808@iapicca closed it as they did not believe it was a flutter issue itself. So any help is appreciated!! Thanks
I was able to fix the issue by simply changing the compileSdkVersion from 27 to 28. Created a pull request with the fix. Although, I am not sure if version update will affect any other parts of your code.
Hello, this flutter_sqlcipher plugin appears to no longer be compatible with the latest versions of flutter in the beta channel (as well as on dev and master channels). I have reported on the main flutter github issues page in case it was a larger issue with changes in flutter, but it was requested that I raise this individually on the plugins I have found issue with, hence this issue.
This is all noted in the following issue: flutter/flutter#45808 and detail included below which includes steps to reproduce:
Hello, very simply, switching from the stable to beta channel of flutter caused an issue with a "flutter build apk --release" causing the following error:
This is when targetting Android API 29 and when including either "flutter_isolate" or "flutter_sqlcipher" in pubspec.yaml
This is reproducible and I just ran through the following myself on a blank project:
Steps to Reproduce
Target Platform: Android
Target OS version/browser: API 29
Devices: N/A - Build
Logs
The text was updated successfully, but these errors were encountered: