qiuxiang / react-native-amap3d

react-native 高德地图组件,使用最新 3D SDK,支持 Android + iOS
https://qiuxiang.github.io/react-native-amap3d/api/
MIT License
1.28k stars 329 forks source link

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

Closed inkcrazy666 closed 1 year ago

inkcrazy666 commented 1 year ago

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这个库里面我改掉了,镜像地址成功了,运行还是失败的。

raochenghui commented 1 year ago

I have the same problem. Have you solved it?

raochenghui commented 1 year ago

I have the same problem. Have you solved it?

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

inkcrazy666 commented 1 year ago

I have the same problem. Have you solved it?

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

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

raochenghui commented 1 year ago

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

inkcrazy666 commented 1 year ago

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

inkcrazy666 commented 1 year ago

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'
}