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

Amplitude Flutter v4.0.0 Beta 4 does not work on Android: Unresolved reference library_ #194

Closed
mihaiborcansst opened this issue Jun 28, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@mihaiborcansst
Copy link

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/amplitude_flutter/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

Steps to Reproduce

  1. Add the latest beta version to any flutter project.
  2. Run the app on an Android device/emulator.

Environment

  • SDK Version: 4.0.0-beta.4
  • Flutter Version: 3.22.1
  • Device: not relevant
  • Device OS and Version: not relevant

Am I missing something?

@Mercy811
Copy link
Contributor

Hi @mihaiborcansst, 4.0.0-beta.5 should fix this.

@mihaiborcansst
Copy link
Author

Thank you, @Mercy811! Sorry for the late answer. I'll close this issue now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants