【发布时间】: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