android-object-pascal-wrapper icon indicating copy to clipboard operation
android-object-pascal-wrapper copied to clipboard

Java2Pas tool imported the VpnService.java file incorrectly.

Open War3Evo opened this issue 7 years ago • 0 comments

"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

War3Evo avatar Dec 25 '18 13:12 War3Evo