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

NativiActivity java.lang.RuntimeException: java.lang.IllegalArgumentException: Unable to find native library main using classloade #1302

Open
chenranok opened this issue Apr 3, 2024 · 0 comments

Comments

@chenranok
Copy link

项目基于NativiActivity ,有用到
android:theme="@style/AppBaseTheme_Light" >

运行时至 Nativity 的onCreate的下方代码 时,会崩溃; (单独为它加了个代理Activity加上了上面的配置也一样崩)
BaseDexClassLoader classLoader = (BaseDexClassLoader) getClassLoader();
String path = classLoader.findLibrary(libname);

    if (path == null) {
        throw new IllegalArgumentException("Unable to find native library " + libname +
                                           " using classloader: " + classLoader.toString());
    }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant