当前位置: 首页 > 知识库问答 >
问题:

找到多个具有操作系统独立路径“lib/armeabi-v7a/librssupport.so”的文件

凌嘉勋
2023-03-14
    exclude 'META-INF/DEPENDENCIES'
    exclude 'META-INF/LICENSE'
    exclude 'META-INF/LICENSE.txt'
    exclude 'META-INF/license.txt'
    exclude 'META-INF/NOTICE'
    exclude 'META-INF/NOTICE.txt'
    exclude 'META-INF/notice.txt'
    exclude 'META-INF/ASL2.0'
    exclude 'META-INF/rxjava.properties'
}
<com.facebook.shimmer.ShimmerFrameLayout
    android:id="@+id/shimmerUserProfileActivity"
    android:layout_width="wrap_content"
    app:shimmer_shape="radial"
    app:shimmer_duration="800"
    app:shimmer_auto_start="true"
    app:shimmer_repeat_mode="restart"
    android:layout_height="wrap_content">

    <include layout="@layout/layout_shimmer_user_profile"/>

</com.facebook.shimmer.ShimmerFrameLayout>

共有1个答案

孟胤
2023-03-14

这招奏效了。

android{
    packagingOptions{

        pickFirst 'lib/mips/libRSSupport.so'
        pickFirst 'lib/x86/libRSSupport.so'
        pickFirst 'lib/mips/librsjni.so'
        pickFirst 'lib/x86/librsjni.so'
        pickFirst 'lib/armeabi-v7a/libRSSupport.so'
        pickFirst 'lib/armeabi-v7a/librsjni.so'
    }
}

这是我的包装选项的全部代码

android{
    packagingOptions {

        exclude 'META-INF/DEPENDENCIES'
        exclude 'META-INF/LICENSE'
        exclude 'META-INF/LICENSE.txt'
        exclude 'META-INF/license.txt'
        exclude 'META-INF/NOTICE'
        exclude 'META-INF/NOTICE.txt'
        exclude 'META-INF/notice.txt'
        exclude 'META-INF/ASL2.0'
        exclude 'META-INF/rxjava.properties'

        pickFirst 'lib/mips/libRSSupport.so'
        pickFirst 'lib/x86/libRSSupport.so'
        pickFirst 'lib/mips/librsjni.so'
        pickFirst 'lib/x86/librsjni.so'
        pickFirst 'lib/armeabi-v7a/libRSSupport.so'
        pickFirst 'lib/armeabi-v7a/librsjni.so'

        pickFirst 'lib/x86_64/libsqlcipher.so'
        pickFirst 'lib/armeabi/libsqlcipher.so'
        pickFirst 'lib/x86/libsqlcipher.so'
        pickFirst 'lib/armeabi-v7a/libsqlcipher.so'
        pickFirst 'lib/arm64-v8a/libsqlcipher.so'
        pickFirst 'lib/armeabi-v7a/libassmidi.so'
        pickFirst 'lib/x86/libassmidi.so'
    }
}

我注意到问题并不是真的由微光布局带来的。这是因为即使在删除了所有shimmer声明、实现并重新构建了我的项目之后,问题仍然持续存在。希望这有帮助。

 类似资料: