Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug report] Cannot compile Andorid app because of "Unresolved reference: PermissionDelegate29" #1164

Closed
btanev opened this issue Jul 19, 2024 · 1 comment

Comments

@btanev
Copy link

btanev commented Jul 19, 2024

Version

3.2.2

Platforms

Android

Device Model

Pixel 7a API 34 emulator

flutter info

[✓] Flutter (Channel stable, 3.22.3, on macOS 14.5 23F79 darwin-x64, locale en-BG)
    • Flutter version 3.22.3 on channel stable at /Users/xxx/fvm/versions/3.22.3
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision b0850beeb2 (2 days ago), 2024-07-16 21:43:41 -0700
    • Engine revision 235db911ba
    • Dart version 3.4.4
    • DevTools version 2.34.3

[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
    • Android SDK at /Users/xxx/Library/Android/sdk
    • Platform android-34, build-tools 34.0.0
    • ANDROID_HOME = /Users/xxx/Library/Android/sdk
    • Java binary at: /Users/xxx/Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 17.0.11+0-17.0.11b1207.24-11852314)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 15.4)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 15F31d
    • CocoaPods version 1.15.2

[✗] Chrome - develop for the web (Cannot find Chrome executable at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome)
    ! Cannot find Chrome. Try setting CHROME_EXECUTABLE to a Chrome executable.

[✓] Android Studio (version 2024.1)
    • Android Studio at /Users/xxx/Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 17.0.11+0-17.0.11b1207.24-11852314)

[✓] IntelliJ IDEA Ultimate Edition (version 2024.1.4)
    • IntelliJ at /Users/xxx/Applications/IntelliJ IDEA Ultimate.app
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin version 241.17890.8

[✓] VS Code (version 1.91.1)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.92.0

[✓] Connected device (2 available)
    • sdk gphone64 x86 64 (mobile) • emulator-5554 • android-x64 • Android 14 (API 34) (emulator)
    • macOS (desktop)              • macos         • darwin-x64  • macOS 14.5 23F79 darwin-x64

[✓] Network resources
    • All expected network resources are available.

! Doctor found issues in 1 category.

How to reproduce?

Cannot build Android because of:

photo_manager-3.2.2/android/src/main/kotlin/com/fluttercandies/photo_manager/permission/PermissionDelegate.kt:11:57 Unresolved reference: PermissionDelegate29

Logs

Launching lib/main.dart on sdk gphone64 x86 64 in debug mode...
Running Gradle task 'assembleDevelopmentDebug'...
e: .../photo_manager-3.2.2/android/src/main/kotlin/com/fluttercandies/photo_manager/permission/PermissionDelegate.kt:11:57 Unresolved reference: PermissionDelegate29
e: .../photo_manager-3.2.2/android/src/main/kotlin/com/fluttercandies/photo_manager/permission/PermissionDelegate.kt:131:35 Unresolved reference: PermissionDelegate29

FAILURE: Build failed with an exception.

Example code (optional)

No response

Contact

No response

@btanev
Copy link
Author

btanev commented Jul 19, 2024

After cleaning all of the previous build files and executing clean build all seems to be ok. Closing this one. Sorry for the noise.

@btanev btanev closed this as completed Jul 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant