2

Android\Sdk\sources\android-27\java\lang\String.java

@FastNative
public native String concat(String str);
  1. Why Android Studio Cannot resolve symbol @FastNative?
  2. How is that this java method could call a native method without mentioning the class or package containing the concat method in the native code?
Eftekhari
  • 1,001
  • 1
  • 19
  • 37
  • 1
    See also: https://stackoverflow.com/questions/18900736/what-are-native-methods-in-java-and-where-should-they-be-used – filpa Apr 13 '18 at 23:12
  • Native method forces the loader to look for the `concat` method in `String` class of native library? In that answer there is a loader in the java class, what is the equivalent of that loader in Android? – Eftekhari Apr 13 '18 at 23:47

0 Answers0