gpt4 book ai didi

android - 无法解析 com.android.billingclient :billing:dp-1

转载 作者:塔克拉玛干 更新时间:2023-11-02 19:24:31 25 4
gpt4 key购买 nike

project(":android") {
apply plugin: "android"
apply plugin: "com.android.application"

configurations { natives }

dependencies {
compile project(":core")
compile "com.android.billingclient:billing:dp-1"
compile "com.badlogicgames.gdx:gdx-backend-android:$gdxVersion"
natives "com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-armeabi"
natives "com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-armeabi-v7a"
natives "com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-arm64-v8a"
natives "com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-x86"
natives "com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-x86_64"
compile "com.badlogicgames.gdx:gdx-freetype:$gdxVersion"
natives "com.badlogicgames.gdx:gdx-freetype-platform:$gdxVersion:natives-armeabi"
natives "com.badlogicgames.gdx:gdx-freetype-platform:$gdxVersion:natives-armeabi-v7a"
natives "com.badlogicgames.gdx:gdx-freetype-platform:$gdxVersion:natives-arm64-v8a"
natives "com.badlogicgames.gdx:gdx-freetype-platform:$gdxVersion:natives-x86"
compile "com.google.android.gms:play-services-ads:11.0.0"
compile "com.android.billingclient:billing:dp-1"


}

我的 android studio 项目中有以下 gradle 代码,它仍然给我一个错误“无法解析 com.android.billingclient:billing:dp-1”,为什么它不同步?我应该再附上一些东西吗?

最佳答案

com.android.billingclient:billing:dp-1 不存在于 mavenCentral 中,但存在于 jcenter 中。您需要做的就是将 jcenter() 添加到存储库部分。

    allprojects {
apply plugin: "eclipse"
apply plugin: "idea"

version = '1.0'
ext {
appName = "FidgetSpinner"
gdxVersion = '1.9.6'
roboVMVersion = '2.3.0'
box2DLightsVersion = '1.4'
ashleyVersion = '1.7.0'
aiVersion = '1.8.0'
}

repositories {
mavenLocal()
mavenCentral()
maven { url "http://oss.sonatype.org/content/repositories/snapshots/" }
maven { url "http://oss.sonatype.org/content/repositories/releases/" }
jcenter() <<<<<<------------ ADD THIS LINE TO MAKE IT WORK
}

关于android - 无法解析 com.android.billingclient :billing:dp-1,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44741850/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com