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
600 stars 320 forks source link

As soon as I connect. #43

Open rhijjawi opened 4 years ago

rhijjawi commented 4 years ago

E/AndroidRuntime: FATAL EXCEPTION: main Process: com.buzz.vpn, PID: 22879 java.lang.NumberFormatException: For input string: "NULL" at java.lang.Integer.parseInt(Integer.java:615) at java.lang.Integer.parseInt(Integer.java:650) at com.buzz.vpn.ServerActivity$CategoryArray.getView(ServerActivity.java:446) at android.widget.AbsListView.obtainView(AbsListView.java:2399) at android.widget.ListView.measureHeightOfChildren(ListView.java:1482) at android.widget.ListView.onMeasure(ListView.java:1389) at android.view.View.measure(View.java:23181) at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:6749) at android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1535) at android.widget.LinearLayout.measureVertical(LinearLayout.java:825) at android.widget.LinearLayout.onMeasure(LinearLayout.java:704) at android.view.View.measure(View.java:23181) at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:6749) at android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1535) at android.widget.LinearLayout.measureVertical(LinearLayout.java:825) at android.widget.LinearLayout.onMeasure(LinearLayout.java:704) at android.view.View.measure(View.java:23181) at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:6749) at android.widget.FrameLayout.onMeasure(FrameLayout.java:185) at android.view.View.measure(View.java:23181) at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:6749) at android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1535) at android.widget.LinearLayout.measureVertical(LinearLayout.java:825) at android.widget.LinearLayout.onMeasure(LinearLayout.java:704) at android.view.View.measure(View.java:23181) at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:6749) at android.widget.FrameLayout.onMeasure(FrameLayout.java:185) at com.android.internal.policy.DecorView.onMeasure(DecorView.java:716) at android.view.View.measure(View.java:23181) at android.view.ViewRootImpl.performMeasure(ViewRootImpl.java:2727) at android.view.ViewRootImpl.measureHierarchy(ViewRootImpl.java:1580) at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1864) at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1468) at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:7208) at android.view.Choreographer$CallbackRecord.run(Choreographer.java:1004) at android.view.Choreographer.doCallbacks(Choreographer.java:816) at android.view.Choreographer.doFrame(Choreographer.java:751) at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:990) at android.os.Handler.handleCallback(Handler.java:873) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loop(Looper.java:193) at android.app.ActivityThread.main(ActivityThread.java:6694) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)

gayanvoice commented 4 years ago

Can you explain this error? You are getting a null exception

rhijjawi commented 4 years ago

i am experiencing an issue where the file is not recognized by the app. https://raw.githubusercontent.com/rhijjawi/android-vpn-client-ics-openvpn/master/filedetails.json is this formatted correctly?

gayanvoice commented 4 years ago

invalid

gayanvoice commented 4 years ago

Your file is invalid. Remove the whitespace.

odejinmi commented 4 years ago

WhatsApp Image 2020-08-06 at 1 43 17 PM whenever I click connect button, this is what it shows, Can you please help me on what to do

akibeulah commented 3 years ago

Your FileDetails.json is invalid. Remove the whitespaces and replace newlines with \n. It should work.

Also check through your ovpn file for quotation marks like ("), ('), and (`). These will not allow the activities to parse your JSON property, so remove them from your ovpn file before pasting it into your FileDetails.json.