Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

More than one file was found with OS independent path 'lib/arm64-v8a/libshufflenet_inference.so'. If you are using jniLibs and CMake IMPORTED targets, see https://developer.android.com/studio/preview/features#automatic_packaging_of_prebuilt_dependencies_used_by_cmake #94

Closed
aspnetcs opened this issue Aug 31, 2020 · 3 comments
Labels
invalid This doesn't seem right

Comments

@aspnetcs
Copy link

请简要描述您的需求

More than one file was found with OS independent path 'lib/arm64-v8a/libshufflenet_inference.so'. If you are using jniLibs and CMake IMPORTED targets, see https://developer.android.com/studio/preview/features#automatic_packaging_of_prebuilt_dependencies_used_by_cmake

android 如何解决

@ChaiByte
Copy link
Contributor

ChaiByte commented Aug 31, 2020

请尝试添加以下规则,默认选择第一个找到的路径:

android {
......
    packagingOptions {
        pickFirst 'lib/arm64-v8a/libshufflenet_inference.so'
    }
}

Refs:

@ChaiByte
Copy link
Contributor

这个问题属于 Android 相关的环境设置,与 MegEngine 本质无关,可能会被添加 invalid 标签,

@ChaiByte ChaiByte added the invalid This doesn't seem right label Aug 31, 2020
@aspnetcs
Copy link
Author

不管用的,

packagingOptions {
pickFirst 'lib/arm64-v8a/libshufflenet_inference.so'
}

确实管用,成功了!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid This doesn't seem right
Projects
None yet
Development

No branches or pull requests

2 participants