android-object-pascal-wrapper
android-object-pascal-wrapper copied to clipboard
Java2Pas tool imported the VpnService.java file incorrectly.
"The generated .pas file does not include any declarations for the VpnService.Builder inner class at all, but yet the [JavaSignaure] attribute for TJVpnService is trying to import methods from the Builder class. prepare() is a method of the VpnService class itself, not the Builder class, so try changing the [JavaSignature] attribute to [JavaSignature('android/net/VpnService')] instead of [JavaSignature('android/net/VpnService$Builder')]."
Full Answer here: https://stackoverflow.com/questions/45415894/using-delphis-androidhelper-or-jni-to-access-static-java-method-in-delphi