Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

missing 'version' at /variants[6]/dependencies[0]/requestedCapabilities[0]这个是网不好?终端都设置代理了,build.gradle也加阿里云maven镜像了[捂脸] #793

Closed
inkcrazy666 opened this issue Apr 21, 2023 · 6 comments

Comments

@inkcrazy666
Copy link

inkcrazy666 commented Apr 21, 2023

problem occurred configuring project ':react-native-amap3d'.

Could not resolve all artifacts for configuration ':react-native-amap3d:classpath'.
Could not resolve org.jetbrains.kotlin:kotlin-gradle-plugin:1.7.21.
Required by:
project :react-native-amap3d
> Could not resolve org.jetbrains.kotlin:kotlin-gradle-plugin:1.7.21.
> Could not parse module metadata https://repo.maven.apache.org/maven2/org/jetbrains/kotlin/kotlin-gradle-plugin/1.7.21/kotlin-gradle-plugin-1.7.21.module
> missing 'version' at /variants[6]/dependencies[0]/requestedCapabilities[0]

image
image
注释掉一些库也不行
image
image

image
react-native-amap3d这个库里面我改掉了,镜像地址成功了,运行还是失败的。

@inkcrazy666 inkcrazy666 changed the title 这个是网不好?终端都设置代理了,build.gradle也加阿里云maven镜像了[捂脸] missing 'version' at /variants[6]/dependencies[0]/requestedCapabilities[0]这个是网不好?终端都设置代理了,build.gradle也加阿里云maven镜像了[捂脸] Apr 21, 2023
@raochenghui
Copy link

I have the same problem. Have you solved it?

@raochenghui
Copy link

I have the same problem. Have you solved it?

别用公司网络,用自己手机数据翻墙装

@inkcrazy666
Copy link
Author

inkcrazy666 commented Jun 12, 2023

I have the same problem. Have you solved it?

别用公司网络,用自己手机数据翻墙装

那我七月份再试试,我们又要百度地图换高德地图,上次失败了,再试试😂
你们高德地图/定位都用什么补丁,或者修改了啥,能分享一下或者写篇博客吗,哈哈哈哈

@raochenghui
Copy link

我切回react-native-amap-geolocation这个库了,没用这个

@inkcrazy666
Copy link
Author

这个库没地图啊,只有定位

@inkcrazy666
Copy link
Author

inkcrazy666 commented Jul 7, 2023

gradle6.0.1,
classpath("com.android.tools.build:gradle:3.5.4")
把kotlin_version版本由1.7.21->1.4.32
image
image

apply plugin: 'com.android.library'
apply plugin: 'kotlin-android'

def getExt(prop, fallback) {
    rootProject.ext.has(prop) ? rootProject.ext.get(prop) : fallback
}

buildscript {
    // ext.kotlin_version = '1.7.21'
    ext.kotlin_version = '1.4.32'

    repositories {
        mavenCentral()
    }

    dependencies {
        classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
    }
}

android {
    compileSdkVersion getExt('compileSdkVersion', 33)
    buildToolsVersion getExt('buildToolsVersion', '33.0.0')

    defaultConfig {
        minSdkVersion getExt('minSdkVersion', 21)
        targetSdkVersion getExt('targetSdkVersion', 33)
    }
}

dependencies {
    compileOnly 'com.facebook.react:react-native:+'
    implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
    implementation 'com.amap.api:3dmap:9.6.0'
}

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

No branches or pull requests

2 participants