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

Gradle build fails on AS 3.0 canary 1 w/Anko dependency #381

Closed
brezinajn opened this issue May 19, 2017 · 9 comments
Closed

Gradle build fails on AS 3.0 canary 1 w/Anko dependency #381

brezinajn opened this issue May 19, 2017 · 9 comments

Comments

@brezinajn
Copy link

When included compile "org.jetbrains.anko:anko:0.10.0" gradle build throws Error:Failed to resolve: com.google.android:android:2.3.1 on Android Studio 3.0 Canary 1 w/gradle:3.0.0-alpha1.

@rocketsummer
Copy link

I'm seeing the same issue. How do I fix it?

@walfud
Copy link

walfud commented May 20, 2017

I change buildscript deps to classpath 'com.android.tools.build:gradle:2.4.0-alpha7' solved the problem. but a warning: "Warning:Ignoring Android API artifact com.google.android:android:2.3.1 for debug"
It seems that newest 3.0 version treat it as error.

@sonnytron
Copy link

I guess we'll just have to wait for Anko to give an Alpha build that we can use

@m43bloe
Copy link

m43bloe commented May 22, 2017

Obviously a hack for now, but I got this to build & run with 3.0.0-alpha1 by doing this:

compile("org.jetbrains.anko:anko:0.10.0") {
        exclude group: 'com.google.android', module: 'android'
    }

@andre-artus
Copy link

I get the same warning for Anko 0.10.0 in Android Studio 2.3.2
Build #AI-162.3934792, built on April 21, 2017
JRE: 1.8.0_112-release-b06 amd64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o

@evolify
Copy link

evolify commented May 25, 2017

i get the same error

@yanex
Copy link
Member

yanex commented May 25, 2017

Relevant issue in Kotlin issue tracker: https://youtrack.jetbrains.com/issue/KT-18103

@mengming
Copy link

I have the same error too. Any solution now?

@yanex yanex added the fixed label May 31, 2017
@yanex yanex added this to the Anko 0.10.1 milestone May 31, 2017
@yanex yanex closed this as completed May 31, 2017
theFrantic pushed a commit to theFrantic/WeatherApp that referenced this issue Jun 24, 2017
Back to anko version 0.10.1 because of incompatibility importing
coroutines library for more info follow [this
link](Kotlin/anko#381)
@lozn00
Copy link

lozn00 commented Aug 21, 2017

i not understand ,how to modify my code?

max version is 0.10.0-beta -2
https://jcenter.bintray.com/org/jetbrains/anko/anko-support-v4/

that link https://youtrack.jetbrains.com/issue/KT-18103

i show this error,
Error:Failed to resolve: org.jetbrains.anko:anko-support-v4:0.14
Open File
Show in Project Structure dialog

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

10 participants