'VPN is not connecting after uploading android app bundle(..aab) to play store
I am using ics-openvpn version 0.7.33 latest one. The app runs fine with .apk. But once I upload to Google play store through .aab then It's not connecting. After installing the app from the play store, opens fine but on connecting throws exceptions. Following exceptions are getting...
Error reading from output of OpenVPN process: Cannot run program "/data/app/com.mycompany.sslvpn-VkwWqlSgj-ZP5zBpQLYGNA==/lib/arm64/libovpnexec.so": error=2, No such file or directory
java.io.IOException: Cannot run program "/data/app/com.mycompany.sslvpn-VkwWqlSgj-ZP5zBpQLYGNA==/lib/arm64/libovpnexec.so": error=2, No such file or directory
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1050)
at com.mycompany.sslvpn.core.OpenVPNThread.startOpenVPNThreadArgs(OpenVPNThread.java:123)
at com.mycompany.sslvpn.core.OpenVPNThread.run(OpenVPNThread.java:65)
at java.lang.Thread.run(Thread.java:919)
Caused by: java.io.IOException: error=2, No such file or directory
at java.lang.UNIXProcess.forkAndExec(Native Method)
at java.lang.UNIXProcess.<init>(UNIXProcess.java:133)
at java.lang.ProcessImpl.start(ProcessImpl.java:141)
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029)
application .apk runs without any exceptions. Exceptions occurred when the app is uploaded to the Play store through the android app bundle(.aab).
I don't know why it's happening.
Android version: 11, ics-openvpn version: 0.7.33
Solution 1:[1]
The option setting 'android.bundle.enableUncompressedNativeLibs=false' is deprecated.
The current default is 'true'
It will be removed in version 8.0 of the Android Gradle plugin.
You can add the following to your build.gradle instead:
android {
packagingOptions {
jniLibs {
useLegacyPackaging = true
}
}
}
Solution 2:[2]
I guess that's because when you first call getTicket function, this.state.client is undefined. You should give it a value as default first but in my knowledge, it's not good to give function to a "state". You should make the convert value function as a call back outside, not in "state" cuz React re-make the function again whenever the state value change and it wastes memory.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | MAYANK SINGH |
| Solution 2 | Dae Hyeon Mun |
