Qt does not compile callStaticObjectMethod()
问题 I wrote the following code from this question and it was compiled and worked perfectly: QAndroidJniObject str = QAndroidJniObject::callStaticObjectMethod<jstring>( "org/.../TestClass" ,"staticMethod"); Now I have changed the java method and it needs an input parameter of type string. The Java code : public class TestClass{ public string str; public TestClass() { str = "Test From Java"; } public static String staticMethod(String str) { return "Test From Java, "+str; } } But adding the method