电容器/CMOTION/ionic-keycloak-auth 未找到 CustomTabsIntent
Capacitor / CMOTION/ionic-keycloak-auth CustomTabsIntent not found
我正在尝试将我们的 angular 网络应用程序转换为带有电容器的 android 应用程序。我们正在使用 SSO 登录,我想使用 https://www.npmjs.com/package/@cmotion/ionic-keycloak-auth 一切都已安装和配置,但在构建时我收到此错误
import android.support.customtabs.CustomTabsIntent;
^
symbol: class CustomTabsIntent
location: package android.support.customtabs
在浏览器选项卡中 class。
我已将 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 的缓存无效,但每次都会出现这个问题。
导入错误
如果您遇到问题,请将 customtabs 的导入更改为
进口androidx.browser.customtabs.CustomTabsIntent
我正在尝试将我们的 angular 网络应用程序转换为带有电容器的 android 应用程序。我们正在使用 SSO 登录,我想使用 https://www.npmjs.com/package/@cmotion/ionic-keycloak-auth 一切都已安装和配置,但在构建时我收到此错误
import android.support.customtabs.CustomTabsIntent;
^
symbol: class CustomTabsIntent
location: package android.support.customtabs
在浏览器选项卡中 class。
我已将 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 的缓存无效,但每次都会出现这个问题。
导入错误 如果您遇到问题,请将 customtabs 的导入更改为
进口androidx.browser.customtabs.CustomTabsIntent