Closed mihaiborcansst closed 1 day ago
Project compiles without errors.
.pub-cache/hosted/pub.dev/amplitude_flutter-4.0.0-beta.4/android/src/main/kotlin/com/amplitude/amplitudeflutter/FlutterLibraryPlugin.kt:15:31 Unresolved reference 'library' when trying to run the app on an Android device/emulator.
Use ${library}_${event.library} instead of $library_${event.library} at https://github.com/amplitude/Amplitude-Flutter/blob/b9b7c5d589bd9810d773a5f921b98d92cc90b68e/android/src/main/kotlin/com/amplitude/amplitude_flutter/FlutterLibraryPlugin.kt#L15
${library}_${event.library}
$library_${event.library}
Am I missing something?
Hi @mihaiborcansst, 4.0.0-beta.5 should fix this.
4.0.0-beta.5
Thank you, @Mercy811! Sorry for the late answer. I'll close this issue now.
Expected Behavior
Project compiles without errors.
Current Behavior
.pub-cache/hosted/pub.dev/amplitude_flutter-4.0.0-beta.4/android/src/main/kotlin/com/amplitude/amplitudeflutter/FlutterLibraryPlugin.kt:15:31 Unresolved reference 'library' when trying to run the app on an Android device/emulator.
Possible Solution
Use
${library}_${event.library}
instead of$library_${event.library}
at https://github.com/amplitude/Amplitude-Flutter/blob/b9b7c5d589bd9810d773a5f921b98d92cc90b68e/android/src/main/kotlin/com/amplitude/amplitude_flutter/FlutterLibraryPlugin.kt#L15Steps to Reproduce
Environment
Am I missing something?