android - 在 InstantApps 类中找不到 showInstallPrompt

标签 android android-instant-apps

我遇到了这个问题。

enter image description here

我已经有了这些配置..

 compileSdkVersion 26
    buildToolsVersion '28.0.3'
    defaultConfig {
        minSdkVersion 16
        targetSdkVersion 26

    implementation 'com.android.support:cardview-v7:26.1.0'
    implementation 'com.android.support:recyclerview-v7:26.1.0'
    implementation 'com.google.code.gson:gson:2.4'
    implementation 'com.squareup.picasso:picasso:2.4.0'
    implementation 'com.android.volley:volley:1.1.0'
    implementation 'com.makeramen:roundedimageview:2.1.1'
    implementation project(':expandablelayout')
    implementation 'com.daimajia.swipelayout:library:1.2.0@aar'
    implementation 'com.timehop.stickyheadersrecyclerview:library:0.4.1@aar'
    implementation 'com.google.android.gms:play-services-gcm:15.0.1'
    implementation 'com.google.android.gms:play-services-analytics:16.0.0'
    implementation 'com.google.android.gms:play-services-location:15.0.1'
    implementation 'com.google.android.gms:play-services-ads:15.0.1'
    implementation 'com.google.android.gms:play-services-auth:15.0.1'
    implementation 'com.google.firebase:firebase-core:16.0.0'
    implementation 'com.facebook.android:facebook-android-sdk:4.26.0'
    implementation('com.crashlytics.sdk.android:crashlytics:2.5.0@aar') {
        transitive = true;
    }
    implementation project(':stripe')
    //implementation files('libs/PayPalAndroidSDK-2.10.1.jar')
    implementation('com.paypal.sdk:paypal-android-sdk:2.16.0') {
        exclude group: 'io.card'
    }
    implementation 'com.facebook.android:account-kit-sdk:4.18.0'
    implementation files('libs/GoogleConversionTrackingSdk-2.2.4.jar')
    implementation 'me.grantland:autofittextview:0.2.1'
    implementation 'com.appsflyer:af-android-sdk:4.8.11@aar'
    implementation 'com.android.support:multidex:1.0.1'
    implementation 'com.onesignal:OneSignal:3.6.3@aar'

想法?

最佳答案

为什么你的依赖项丢失了:

com.google.android.gms:play-services-instantapps

请仔细检查其他地方的 gradle 依赖项并确保其已更新。 16.0.1 对我有用。

/com/google/android/gms/instantapps/InstantApps

关于android - 在 InstantApps 类中找不到 showInstallPrompt,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54493444/

相关文章:

Android 即时应用程序 : showInstallPrompt's postInstallIntent does nothing?

java - 我可以在 Android 上实现自己的文件系统吗?

android - 我的操作栏标题使用了错误的主题颜色

android - 设置安卓屏幕亮度

java - 如何在Instant Apps中实现Multi Dex?

android - 是否可以在模拟器上使用已发布的即时应用程序(BuzzFeed、Wish 等)?

android - 如何使用我编译的 android 即时应用程序项目

安卓实时通知

java - 从其他 Activity 中的 AsyncTask 返回值

android - 在 Android Instant Apps 的情况下,Fabric 初始化无法计算应用程序图标的哈希值