2017-09-02 10 views
0

this linkに従って、アプリにアプリの請求を追加しようとしました。Android - アプリの請求でのエラー

私は私のbuild.gradleに

dependencies { 
... 
compile 'com.android.billingclient:billing:dp-1' 
} 

これを追加しかし、私は何をしないのです。このエラーIビルド - >クリーンプロジェクト

Error:A problem occurred configuring project ':android'. 
> Could not resolve all dependencies for configuration 
':android:_debugApkCopy'. 
> Could not find com.android.billingclient:billing:dp-1. 
Required by: 
    Mygame:android:1.0 

を取得しますか?私はグーグルで有用な情報を見つけることができません。私はlibgdxとAndroid Studiosを使用しています。

答えて

0

com.android.billingclient:billing:dp-1はjcenterリポジトリにありますので、ルートbuild.gradleのリポジトリリストにjcenterを追加してください。

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

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

    repositories { 
     mavenLocal() 
     mavenCentral() 
     maven { url "https://oss.sonatype.org/content/repositories/snapshots/" } 
     maven { url "https://oss.sonatype.org/content/repositories/releases/" } 
     maven { url "https://maven.google.com/"} 
     jcenter() // <-- Add this 

    } 
} 
関連する問題