【问题标题】:Capacitor / CMOTION/ionic-keycloak-auth CustomTabsIntent not found电容器/CMOTION/ionic-keycloak-auth CustomTabsIntent 未找到
【发布时间】:2020-06-19 18:41:11
【问题描述】:

我试图将我们的 angular webapp 转换为带有电容器的 android 应用程序。我们正在使用 SSO 登录,我想使用 https://www.npmjs.com/package/@cmotion/ionic-keycloak-auth 一切都已安装和配置,但在构建时出现此错误

import android.support.customtabs.CustomTabsIntent;
                             ^
symbol:   class CustomTabsIntent
location: package android.support.customtabs

在 BrowserTab 类中。

我已将 android 支持和 browsertab 添加到依赖项中

dependencies {
implementation fileTree(dir: 'src/main/libs', include: ['*.jar'])
implementation "org.apache.cordova:framework:$cordovaAndroidVersion"
// SUB-PROJECT DEPENDENCIES START
implementation 'com.android.support:customtabs:28.0.0'
// SUB-PROJECT DEPENDENCIES END

}

我已经使android studio的缓存失效了,但是每次都出现这个问题。

【问题讨论】:

    标签: android angular capacitor


    【解决方案1】:

    导入错误 如果您有问题,请将 customtabs 的导入更改为

    导入 androidx.browser.customtabs.CustomTabsIntent

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2020-04-11
      • 2021-03-10
      • 2022-01-07
      • 2021-06-30
      • 2014-10-24
      • 2017-04-30
      • 1970-01-01
      • 2018-02-11
      相关资源
      最近更新 更多