Skip to content
This repository has been archived by the owner on Oct 10, 2020. It is now read-only.

Kotlin Android Dependency error fix #1

Closed
baksoy opened this issue Nov 9, 2017 · 8 comments
Closed

Kotlin Android Dependency error fix #1

baksoy opened this issue Nov 9, 2017 · 8 comments

Comments

@baksoy
Copy link

baksoy commented Nov 9, 2017

Need to add Kotlin plugin in the root level build.gradle

dependencies {
        classpath 'com.android.tools.build:gradle:2.3.3'
        classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.1.4-3"   // NEW. Add this line.
}
@mit-mit
Copy link

mit-mit commented Mar 5, 2018

Yes, that sounds right. For plugins created with the flutter tool and the --android-language kotlin, it's added automatically (as the example above, only we default to version 1.1.51):
https://github.com/flutter/flutter/blob/master/packages/flutter_tools/templates/plugin/android-kotlin.tmpl/build.gradle.tmpl

@mit-mit
Copy link

mit-mit commented Mar 5, 2018

cc @matthewtsmith

@NatoBoram
Copy link

There should be a way to configure it automatically, or at least document it somewhere to prevent this error.

* What went wrong:
A problem occurred evaluating project ':barcode_scan'.
> Plugin with id 'kotlin-android' not found.

@marica27
Copy link

Got this error

@dustin-graham
Copy link
Contributor

I opened a pull request last week to update the kotlin and gradle deps to latest revisions: https://github.com/apptreesoftware/flutter_barcode_reader/pull/33.

does this help?

@clarisha
Copy link

I got some erorr 😩

@ammaratef45
Copy link
Contributor

I see the PR is merged, does this make is fixed now?

devtronic pushed a commit that referenced this issue Feb 19, 2020
avoid use Registrar.activity() beforr Flutter engine attached to any activity
@devtronic
Copy link
Member

A new version is available.

nhan1906duong added a commit to nhan1906duong/flutter_barcode_reader that referenced this issue Apr 1, 2020
nhan1906duong added a commit to nhan1906duong/flutter_barcode_reader that referenced this issue Apr 1, 2020
nhan1906duong added a commit to nhan1906duong/flutter_barcode_reader that referenced this issue Apr 1, 2020
nhan1906duong added a commit to nhan1906duong/flutter_barcode_reader that referenced this issue Apr 1, 2020
spfannemueller added a commit to spfannemueller/flutter_barcode_reader that referenced this issue Oct 6, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants