Integrating camera_android_camerax - And how change maxSdkVersion in the android.permission.WRITE_EXTERNAL_STORAGE?

Custom Code

Hey, fellow FlutterFlow friends :))

I am trying to get my custom camera working, but I cannot find a way to change the the permission in the androidmanifest.xml. The problem: Flutterflow sets android.permission.WRITE_EXTERNAL_STORAGE@maxSdkVersion value=(32) and camera_android_camerax sets it to (28). Can someone please help me or point me in the right direction? Every answer I found ist coming back to change it manually in the code (or push the app through android studio, of course). But Flutterflow doesnt give me this option, i fear.

I want the camera: ^0.11.1 dependency, because its bringing camera_android_camerax: ^0.6.15 automatically. (When I downgrade to camera: ^0.10.6, everything is working fine, because camera_android_camerax is not loading...)

Thanks so much in advance a lot and cheers :))

Execution failed for task ':app:processDebugMainManifest'.

> Manifest merger failed : Attribute uses-permission#android.permission.WRITE_EXTERNAL_STORAGE@maxSdkVersion value=(32) from AndroidManifest.xml:7:79-105

is also present at [:camera_android_camerax] AndroidManifest.xml:13:9-35 value=(28).

Suggestion: add 'tools:replace="android:maxSdkVersion"' to <uses-permission> element at AndroidManifest.xml to override.

What have you tried so far?
  • i tried changing manually through "custom code" settings

  • i tried changing the flutterflow "plattforms" maxSdk settings

  • i looked for a solution in the dart packages camera_android_camerax and camera

  • i waited for the flutterflow update to Flutter 3.27 (because this was important for my problem as well)

  • i searched a lot for solutions in the internet - and of course chatGpt and Claude (they tried a lot not helping stuff lol :D)

  • and a lot more (like overriding in the code export)

Did you check FlutterFlow's Documentation for this topic?
Yes
2
3 replies