我从我的朋友Macbook复制了Xcode版本9.0(9A235),并替换为我的Xcode 8.3.2
当我在任何模拟器中运行我的应用程序说iPhone 8或iPhone X时,我得到同样的错误:
无法为应用程序包ID com创建IXPlaceholder.*****.****
模拟器显示黑屏,而不是加载iOS 11
我已经从以下 url https://developer.android.com/google/play/billing/billing_library_overview#java实现了计费库
我在这条线上出错
if (billingResult.getResponseCode() == BillingResponse.OK) {
Run Code Online (Sandbox Code Playgroud)
它说 Cannot resolve symbol 'BillingResponse'
这是上面链接的完整代码
billingClient.startConnection(new BillingClientStateListener() {
@Override
public void onBillingSetupFinished(BillingResult billingResult) {
if (billingResult.getResponseCode() == BillingResponse.OK) {
// The BillingClient is ready. You can query purchases here.
}
}
@Override
public void onBillingServiceDisconnected() {
// Try to restart the connection on the next request to
// Google Play by calling the startConnection() method.
}
});
Run Code Online (Sandbox Code Playgroud)
我在我的应用程序build.gradle文件中添加了以下依赖项
dependencies {
...
implementation 'com.android.billingclient:billing:2.1.0'
}
Run Code Online (Sandbox Code Playgroud)
但我收到错误
我什至无法手动导入
import …Run Code Online (Sandbox Code Playgroud)