Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

按照官方文档引入small的时候,总是会报kotlin的错误。不引入small,kotlin不会报错。 #617

Open

Description

Project的gradle,配置了small和kotlin

buildscript {
ext.kotlin_version = "1.3.72"
ext.small_version = "1.5.0-beta2"
repositories {
google()
jcenter()
}
dependencies {
classpath "com.android.tools.build:gradle:3.4.2"
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath "net.wequick.tools.build:gradle-small:$small_version"
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}

apply plugin: 'net.wequick.small'
small {
aarVersion = small_version
}

app的gradle配置:

api "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
api "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"

gradle跑small task的时候,异常
Execution failed for task ':small'.

Could not resolve all dependencies for configuration ':app:compile'.
Could not find org.jetbrains.kotlin:kotlin-stdlib-jre7:1.3.72.
Searched in the following locations:
- https://dl.google.com/dl/android/maven2/org/jetbrains/kotlin/kotlin-stdlib-jre7/1.3.72/kotlin-stdlib-jre7-1.3.72.pom
- https://dl.google.com/dl/android/maven2/org/jetbrains/kotlin/kotlin-stdlib-jre7/1.3.72/kotlin-stdlib-jre7-1.3.72.jar
- https://jcenter.bintray.com/org/jetbrains/kotlin/kotlin-stdlib-jre7/1.3.72/kotlin-stdlib-jre7-1.3.72.pom
- https://jcenter.bintray.com/org/jetbrains/kotlin/kotlin-stdlib-jre7/1.3.72/kotlin-stdlib-jre7-1.3.72.jar
Required by:
project :app

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

        AltStyle によって変換されたページ (->オリジナル) /