【问题标题】:Why doesn't Android recognize "BillingClient"为什么 Android 无法识别“BillingClient”
【发布时间】:2020-12-15 00:15:11
【问题描述】:

我正在遵循本指南。

https://developer.android.com/google/play/billing/integrate

我的 build.gradle 看起来像这样:

依赖{

implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation "com.android.support:appcompat-v7:28.0.0"
implementation "androidx.constraintlayout:constraintlayout:2.0.4"
implementation "com.google.android.gms:play-services-ads:19.6.0"
implementation "com.android.billingclient:billing:3.0.0"

androidTestImplementation "com.android.support.test:runner:1.0.2"
androidTestImplementation "com.android.support.test.espresso:espresso-core:3.0.2"

}

Android Studios 4 中的 Java 代码没有为 BillingClient 推荐的导入

如果我试试这个: 导入 android.billingclient ... “billingclient”显示为红色/无法识别。

如果我试试这个: 导入 androidx.billingclient ... “billingclient”显示为红色/无法识别。

如果我试试这个: 进口进口com.android.billingclient ... “android”显示为红色/无法识别。

我正在尝试将游戏移植到 Android。我已经坚持了好几天了。非常感谢任何帮助!!!

请帮忙!!谢谢!!

【问题讨论】:

    标签: android linker dependencies billing billingclient


    【解决方案1】:

    好的,我想通了。几天后。

    只是“文件>使用 Gradle 文件同步项目”

    我不确定为什么我不需要为我添加到 gradle 的其他语句执行此操作。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-06-21
      • 2012-10-15
      相关资源
      最近更新 更多