gpt4 book ai didi

android - 错误 : package android. support.v4.view 不存在

转载 作者:太空宇宙 更新时间:2023-11-03 12:43:50 28 4
gpt4 key购买 nike

我正在使用 lottie 库来响应 native 。我只是使用 npm 安装它并使用 react native link 链接它但是当我尝试构建它时我在 lottie 的类 error:
中遇到错误android.support.v4.view 包不存在

这些是我在应用程序gradle中的依赖

dependencies {
compile project(':lottie-react-native')
compile project(':react-native-vector-icons')
compile project(':react-native-view-overflow')
compile fileTree(include: ['*.jar'], dir: 'libs')
compile 'com.facebook.react:react-native:+'
// From node_modules
implementation "android.arch.work:work-runtime:$versions.work"
implementation 'io.reactivex.rxjava2:rxjava:2.2.0'
implementation 'io.reactivex.rxjava2:rxandroid:2.0.1'
implementation 'io.reactivex:rxandroid:1.2.1'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'androidx.test:runner:1.1.0'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.0'
implementation('com.crashlytics.sdk.android:crashlytics:2.9.6@aar') {
transitive = true;
}
implementation 'com.android.support:support-v4:28.0.3'
implementation 'com.android.support:appcompat-v7:28.0.3'

}

compileSdkVersion 28
buildToolsVersion '28.0.3'

defaultConfig {
applicationId "com.pois"
minSdkVersion 19
targetSdkVersion 28
versionCode 1
versionName "1.0"
ndk {
abiFilters "armeabi-v7a", "x86"
}
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}

最佳答案

尝试这样做

npm i jetifier
npx jetify

关于android - 错误 : package android. support.v4.view 不存在,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54433431/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com