GithubHelp home page GithubHelp logo

Android error during build / iOS work: Execution failed for task ':amplitude_flutter:compileDebugKotlin'. about amplitude-flutter HOT 11 CLOSED

amplitude avatar amplitude commented on June 1, 2024 1
Android error during build / iOS work: Execution failed for task ':amplitude_flutter:compileDebugKotlin'.

from amplitude-flutter.

Comments (11)

dutsky avatar dutsky commented on June 1, 2024 1

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.

yuhao900914 avatar yuhao900914 commented on June 1, 2024 1

@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.

yuhao900914 avatar yuhao900914 commented on June 1, 2024

@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.

Nico04 avatar Nico04 commented on June 1, 2024

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.

yuhao900914 avatar yuhao900914 commented on June 1, 2024

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.

GlebUstimenkoWMG avatar GlebUstimenkoWMG commented on June 1, 2024

I see the same issue

from amplitude-flutter.

yuhao900914 avatar yuhao900914 commented on June 1, 2024

Can you guys provide an example app? Then I can try to figure out what's the issue is.

from amplitude-flutter.

dutsky avatar dutsky commented on June 1, 2024

To reproduce this bug:

  1. create new flutter app: flutter create testapp
  2. add amplitude_flutter: ^3.2.1 to pubspec.yaml (stanza from your official documentation)
  3. run it

from amplitude-flutter.

yuhao900914 avatar yuhao900914 commented on June 1, 2024

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.
Screen Shot 2021-10-27 at 1 29 14 PM

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.

dutsky avatar dutsky commented on June 1, 2024

Thank you, @yuhao900914! It works! :3

from amplitude-flutter.

idrisadetunmbi avatar idrisadetunmbi commented on June 1, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.