gayanvoice / android-vpn-client-ics-openvpn

⭐ Create your Android VPN App by using Android Studio and publish to Google Play Store 🤖
https://gayanvoice.medium.com/develop-a-vpn-app-in-java-using-android-studio-6f1f2d66031e
MIT License
586 stars 318 forks source link

Error in Configuration #22

Closed dbchord closed 4 years ago

dbchord commented 4 years ago

Hello, i'm have problem when connecting

Andoird OS 5.1 Android Studio 3.5.3

Error details:

No error logs, i try change all catch when include firebase anylitics:

try {
  // ...
} catch (Exception e) {
  Bundle params = new Bundle();
  params.putString("device_id", App.device_id);
  params.putString("exception", "MA17" + e.toString());
  // mFirebaseAnalytics.logEvent("app_param_error", params);
  Log.e("app_param_error", e.toString());
}

I see problem when launchVPN.java #L250, then VpnProfile.java #L703 but mAlias == null, so it's make return R.string.no_keystore_cert_selected;.

How to solve this?

Thanks

gayanvoice commented 4 years ago

You haven't selected any certificate to establish a connection.

In filedetails.json there is an item called "id" which is an identification of the server file in appdetails.json "file" in "free" JSON object. Check if you have inserted the values correctly.

gayanvoice commented 4 years ago

Did you copy the OpenVPN certificate correctly to the JSON file? The app does not recognize the certificate. Check if the certificate works.

BhoomiKhan commented 4 years ago

First of all I am very thankful to gayanvoice, you made my day. I spent many days to find a mature OpenVPN client project on Github and your client is the only on Github who is giving a very simple solution.

I have opened the project and run successfully but I am facing an issue "Error in Configuration" when i click on "Connect" button. As per the details, I have placed 2 JSON files on my server and paste app detail & server configuration in appdetail.json & clientdetail.json files respectively and changed the url in WelcomeActivity.java file. But still, i am facing this error. Can you please tell me what's wrong with me? Thank you so much