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

Getting Error: Unresolved reference: S, FLAG_MUTABLE #78

Open
marcchiu opened this issue Oct 9, 2022 · 3 comments
Open

Getting Error: Unresolved reference: S, FLAG_MUTABLE #78

marcchiu opened this issue Oct 9, 2022 · 3 comments

Comments

@marcchiu
Copy link

marcchiu commented Oct 9, 2022

My project needs to use an external USB microphone and the internal one at the same time on an Android device, so I tried adding this library to my existing project but when it failed to build. So I created a new flutter project, leaving all codes intact (except setting the sdk versions as below) and added this package as the first thing and I'm getting the very same error:

e: /Users/myname/.pub-cache/hosted/pub.dartlang.org/quick_usb-0.4.0/android/src/main/kotlin/com/example/quick_usb/QuickUsbPlugin.kt: (20, 52): Unresolved reference: S
e: /Users/myname/.pub-cache/hosted/pub.dartlang.org/quick_usb-0.4.0/android/src/main/kotlin/com/example/quick_usb/QuickUsbPlugin.kt: (21, 19): Unresolved reference: FLAG_MUTABLE

I have already set the sdk versions to:

compileSdkVersion 33
minSdkVersion 23
targetSdkVersion 33

flutter clean and pub get, invalidate caches and restarting Android Studio did not help.

My Flutter SDK version is 3.3.2

Please help.

@upendra-bajpai
Copy link

upendra-bajpai commented Oct 20, 2022

+1
got same error

@febryanaep
Copy link

febryanaep commented Oct 26, 2022

i tried changed on build.gradle:
ext.kotlin_version = '1.6.10'
classpath 'com.android.tools.build:gradle:4.1.3'
compileSdkVersion 32

it's worked!

@tegarnugroho
Copy link

is there a solution? @marcchiu @upendra-bajpai

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants