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

gobal mode vpn not working after build #4369

Open
Redshado0w opened this issue Mar 4, 2025 · 2 comments
Open

gobal mode vpn not working after build #4369

Redshado0w opened this issue Mar 4, 2025 · 2 comments

Comments

@Redshado0w
Copy link

Issue Description
I am using the AAR libraries from the following repository:
🔗 AndroidLibXrayLite Releases

I created a libs folder in my Android Studio project and added the required .aar files there. Notably, Android Studio automatically converts this folder into jniLibs.

After adding the necessary files, I built the application successfully.

Testing & Observations
Tested on a device running Android 14
VPN icon appears in the status bar
I can ping the server, meaning the connection is established
However, no traffic is transmitted unless I switch the app to proxy mode
As a result, the global VPN mode does not work
Question
Is there any known issue or required configuration to make the global VPN mode work properly? Any suggestions for debugging this issue?

Thanks in advance

@Redshado0w
Copy link
Author

debug build log here :
`Executing tasks: [:app:assemblePlaystoreDebug] in project D:\android_v2ray_project\v2rayNG\V2rayNG

Starting Gradle Daemon...
Gradle Daemon started in 1 s 111 ms

Task :app:preBuild UP-TO-DATE
Task :app:prePlaystoreDebugBuild UP-TO-DATE
Task :app:mergePlaystoreDebugNativeDebugMetadata NO-SOURCE
Task :app:checkKotlinGradlePluginConfigurationErrors SKIPPED
Task :app:dataBindingMergeDependencyArtifactsPlaystoreDebug UP-TO-DATE
Task :app:generatePlaystoreDebugResValues UP-TO-DATE
Task :app:generatePlaystoreDebugResources UP-TO-DATE
Task :app:mergePlaystoreDebugResources UP-TO-DATE
Task :app:packagePlaystoreDebugResources UP-TO-DATE
Task :app:parsePlaystoreDebugLocalResources UP-TO-DATE
Task :app:dataBindingGenBaseClassesPlaystoreDebug UP-TO-DATE
Task :app:generatePlaystoreDebugBuildConfig UP-TO-DATE
Task :app:checkPlaystoreDebugAarMetadata UP-TO-DATE
Task :app:mapPlaystoreDebugSourceSetPaths UP-TO-DATE
Task :app:createPlaystoreDebugCompatibleScreenManifests UP-TO-DATE
Task :app:extractDeepLinksPlaystoreDebug UP-TO-DATE
Task :app:processPlaystoreDebugMainManifest UP-TO-DATE
Task :app:processPlaystoreDebugManifest UP-TO-DATE
Task :app:processPlaystoreDebugManifestForPackage UP-TO-DATE
Task :app:processPlaystoreDebugResources UP-TO-DATE
Task :app:compilePlaystoreDebugKotlin UP-TO-DATE
Task :app:javaPreCompilePlaystoreDebug UP-TO-DATE
Task :app:compilePlaystoreDebugJavaWithJavac UP-TO-DATE
Task :app:mergePlaystoreDebugShaders UP-TO-DATE
Task :app:compilePlaystoreDebugShaders NO-SOURCE
Task :app:generatePlaystoreDebugAssets UP-TO-DATE
Task :app:mergePlaystoreDebugAssets
Task :app:l8DexDesugarLibPlaystoreDebug UP-TO-DATE
Task :app:checkPlaystoreDebugDuplicateClasses UP-TO-DATE
Task :app:compressPlaystoreDebugAssets
Task :app:mergeLibDexPlaystoreDebug UP-TO-DATE
Task :app:dexBuilderPlaystoreDebug UP-TO-DATE
Task :app:processPlaystoreDebugJavaRes UP-TO-DATE
Task :app:mergeProjectDexPlaystoreDebug UP-TO-DATE
Task :app:mergePlaystoreDebugJniLibFolders
Task :app:validateSigningPlaystoreDebug UP-TO-DATE
Task :app:writePlaystoreDebugAppMetadata UP-TO-DATE
Task :app:writePlaystoreDebugSigningConfigVersions UP-TO-DATE
Task :app:mergePlaystoreDebugNativeLibs
Task :app:mergePlaystoreDebugJavaResource

Task :app:stripPlaystoreDebugDebugSymbols
Unable to strip the following libraries, packaging them as they are: libgojni.so.

Task :app:desugarPlaystoreDebugFileDependencies
Task :app:mergePlaystoreDebugGlobalSynthetics UP-TO-DATE
Task :app:mergeExtDexPlaystoreDebug
Task :app:packagePlaystoreDebug
Task :app:createPlaystoreDebugApkListingFileRedirect UP-TO-DATE
Task :app:assemblePlaystoreDebug

BUILD SUCCESSFUL in 21s
40 actionable tasks: 9 executed, 31 up-to-date

Build Analyzer results available

@UjuiUjuMandan
Copy link
Contributor

UjuiUjuMandan commented Mar 5, 2025

You need libtun2socks.so.

I suppose the development guide in README can be replaced with a link to:

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