Comments (11)
It is okay to update your kotlin version if you are just starting a new app, but it is not good when your project stops building because amplitude's minor update requires you to update kotlin version for the entire project.
And it seems you need to update your documentation then, because project will not build until you change your kotlin_version(and documentation didn't say anything about it).
Thanks!
from amplitude-flutter.
@dutsky Just release v3.7.0, which downgrade the kotlin gradle plugin version to 1.3.40 to fix amplitude_flutter incompatible to project with kotlin gradle plugin version < 1.4.0.
Please try it out and let me know if that's still not working.
from amplitude-flutter.
@yelkamel we recently update our kotlin-gradle-plugin to 1.5.30. Feels like the error might related with that updates.
What's your kotlin version in your project?
from amplitude-flutter.
In my case, setting these values resolved the issue :
ext.kotlin_version = '1.5.31'
classpath 'com.android.tools.build:gradle:7.0.3'
gradle-7.0.2-all.zip
multiDexEnabled true
Note : I have another issue now, trying to figure it out
from amplitude-flutter.
You can also check our example app as a reference.
https://github.com/amplitude/Amplitude-Flutter/blob/main/example/android/build.gradle
This pr includes the example changes when upgrading the kotlin version to 1.5.30.
https://github.com/amplitude/Amplitude-Flutter/pull/68/files
from amplitude-flutter.
I see the same issue
from amplitude-flutter.
Can you guys provide an example app? Then I can try to figure out what's the issue is.
from amplitude-flutter.
To reproduce this bug:
- create new flutter app:
flutter create testapp
- add
amplitude_flutter: ^3.2.1
topubspec.yaml
(stanza from your official documentation) - run it
from amplitude-flutter.
https://github.com/yuhao900914/flutter_test_app
Here is the flutter example app. It works all fine on android Gradle build and on flutter release build on both APK and app bundle.
After you init the test app and install the amplitude_flutter you need to change the kotlin_version version to 1.5.0 like here, then all works fine. https://github.com/yuhao900914/flutter_test_app/blob/main/android/build.gradle#L2
from amplitude-flutter.
Thank you, @yuhao900914! It works! :3
from amplitude-flutter.
This seems to have changed in v3.9.0. It no longer builds on this version with the subject error.
from amplitude-flutter.
Related Issues (20)
- How to mock Amplitude when performing unit test?
- Test Issue ticket creation in AMP
- IP and location are transmitted even though CoppaControl is activated HOT 5
- Nested event_properties maps only serialize the top level on web HOT 1
- amplitude_flutter plugin not install my .yaml file HOT 1
- Can you make your account a verified publisher?
- Build failed on iOS with 'dart:js' error HOT 2
- Amplitude is logging wrong User properties for flutter SDK HOT 8
- Unusually Long Sessions HOT 1
- DefaultTrackingOptions configuration is missing on Flutter SDK HOT 4
- Support Kotlin 1.8 HOT 4
- Same '$identify' event being sent on every app background, even after opt-out/not updating user properties
- Version Conflict for 'Amplitude' in amplitude_flutter on CodeMagic Builds
- Execution failed for task ':amplitude_flutter:compileDebugKotlin'. (Android Gradle 8) HOT 3
- Access hidden method error HOT 1
- Session Reply [Web]
- Urgent need of a migration guide/documentation for `amplitude_flutter 4.0.0` HOT 4
- Using with encrypted db
- Only complete initialization after userId is properly set
- Missing NSPrivacyTracking in PrivacyInfo.xcprivacy HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from amplitude-flutter.