[ ] ^
[ ] symbol: variable ACCESS_BACKGROUND_LOCATION
[ ] location: class permission
[ ] C:\src\flutter.pub-cache\hosted\pub.dartlang.org\permission_handler-5.0.0+hotfix.3\android\src\main\java\com\baseflow\permissionhandler\PermissionUtils.java:47: error: cannot find symbol
[ ] case Manifest.permission.BIND_CALL_REDIRECTION_SERVICE:
[ +1 ms] ^
[ ] symbol: variable BIND_CALL_REDIRECTION_SERVICE
[ ] location: class permission
[ ] C:\src\flutter.pub-cache\hosted\pub.dartlang.org\permission_handler-5.0.0+hotfix.3\android\src\main\java\com\baseflow\permissionhandler\PermissionUtils.java:60: error: cannot find symbol
[ +1 ms] case Manifest.permission.ACCESS_MEDIA_LOCATION:
[ +1 ms] ^
[ ] symbol: variable ACCESS_MEDIA_LOCATION
[ ] location: class permission
[ ] C:\src\flutter.pub-cache\hosted\pub.dartlang.org\permission_handler-5.0.0+hotfix.3\android\src\main\java\com\baseflow\permissionhandler\PermissionUtils.java:62: error: cannot find symbol
[ +2 ms] case Manifest.permission.ACTIVITY_RECOGNITION:
[ ] ^
[ ] symbol: variable ACTIVITY_RECOGNITION
[ ] location: class permission
[ ] C:\src\flutter.pub-cache\hosted\pub.dartlang.org\permission_handler-5.0.0+hotfix.3\android\src\main\java\com\baseflow\permissionhandler\PermissionUtils.java:97: error: cannot find symbol
[ ] if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q) {
[ ] ^
[ ] symbol: variable Q
[ ] location: class VERSION_CODES
[ ] C:\src\flutter.pub-cache\hosted\pub.dartlang.org\permission_handler-5.0.0+hotfix.3\android\src\main\java\com\baseflow\permissionhandler\PermissionUtils.java:98: error: cannot find symbol
[ ] if (hasPermissionInManifest(context, permissionNames, Manifest.permission.ACCESS_BACKGROUND_LOCATION))
[ ]
I got a lot of red line if I want to build in release mode, android
Same issue @klaszlo8207 did you found a fix ?
You are using minSdk lower than 29
The new permission_handler is using the new Android SDK >=29 features
Last permission_handler working version to pubspec.yaml should be like this if don't want your app to support only >=29:
dependencies:
flutter:
sdk: flutter
permission_handler: 5.0.0+hotfix.10
hi @klaszlo8207
Is your issue resolved using the method described by @KohlsAdrian?
If so, I think this issue can be closed!
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
This issue has been automatically closed because there has been no response to our request for more information from the original author. With only the information that is currently in the issue, we don't have enough information to take action. Please reach out if you have or find the answers we need so that we can investigate further.
Most helpful comment
You are using minSdk lower than 29
Check this manifest additions
The new permission_handler is using the new Android SDK >=29 features
Last permission_handler working version to pubspec.yaml should be like this if don't want your app to support only >=29: