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

Not found libovpnexec.so #71

Closed
Natkarock opened this issue Apr 14, 2021 · 6 comments
Closed

Not found libovpnexec.so #71

Natkarock opened this issue Apr 14, 2021 · 6 comments

Comments

@Natkarock
Copy link
Contributor

When I start the current example project, all working right. But when i import vpnLib module in my project, i have java.io.IOException: Cannot run program "/data/app/com.lerta.vpndiler-CjZBOgmwtQoOv6dO3MuGhg==/lib/arm64/libovpnexec.so": error=2 in **** in OpenVPNThread file. Maybe i should do somethning else when importing this module?

@ashraf789
Copy link
Owner

Add next property to file gradle.properties, should help
android.bundle.enableUncompressedNativeLibs=false

#49

@Natkarock
Copy link
Contributor Author

Add next property to file gradle.properties, should help
android.bundle.enableUncompressedNativeLibs=false

#49

It doesn't help

@ashraf789
Copy link
Owner

I have used this library with a couple of projects and I didn't face this error. probably you are missing something.
check this project grade and other settings with your project setting.

@Natkarock
Copy link
Contributor Author

I have used this library with a couple of projects and I didn't face this error. probably you are missing something.
check this project grade and other settings with your project setting.

After a hours of pain i solved the problem by adding

<application
...
android:extractNativeLibs="true"
tools:replace="android:extractNativeLibs">

in AndroidManifest file of main app.

@ashraf789
Copy link
Owner

Congratulations on solving your issue.
But in my project, I didn't add these lines and there is no problem.
https://github.com/ashraf789/Cake-VPN/blob/master/app/src/main/AndroidManifest.xml

@Natkarock
Copy link
Contributor Author

Congratulations on solving your issue.
But in my project, I didn't add these lines and there is no problem.
https://github.com/ashraf789/Cake-VPN/blob/master/app/src/main/AndroidManifest.xml

Yes, i know. It's strange

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

2 participants