ashraf789 / Cake-VPN

Android VPN app based on OpenVPN library.
GNU General Public License v2.0
373 stars 141 forks source link

App not connecting to vpn when install from play store #128

Open prodaabes opened 1 year ago

prodaabes commented 1 year ago

Hello @ashraf789

I have completed successfully my vpn app based on your library: vpnLib, and the app worked correctly when install it from Android Studio, or generate signed apk, but when I upload the app to Google play store and install it, it is not able to connect to vpn.

Please help urgently.

Thank you.

mbljoker commented 1 year ago

@prodaabes

  1. In your app's build.gradle file add:

    
    compileOptions {
        sourceCompatibility JavaVersion.VERSION_1_8
        targetCompatibility JavaVersion.VERSION_1_8
    }
    
    # code add
    bundle {
        abi { enableSplit = false }
    }
2. In the file gradle.properties add : 

android.nonTransitiveRClass=true

code add

android.bundle.enableUncompressedNativeLibs=false