Improve diagnostics when RegisterNatives fails.

This assumes that people spell the method name correctly, but make mistakes
in the signature (which seems to be true in practice).

Before:
    W( 7757) ERROR: Unable to find decl for native Llibcore/io/Posix;.sendfile:(Ljava/io/FileDescriptor;Ljava/io/FileDescriptor;Llibcore/util/MutableInt;J)J  (dalvikvm)
    E( 7757) RegisterNatives failed for 'libcore/io/Posix', aborting  (JNIHelp)

After:
    E(23966) ERROR: couldn't find native method  (dalvikvm)
    E(23966) Requested: Llibcore/io/Posix;.sendfile:(Ljava/io/FileDescriptor;Ljava/io/FileDescriptor;Llibcore/util/MutableLong;J)Z  (dalvikvm)
    E(23966) Candidate: Llibcore/io/Posix;.sendfile:(Ljava/io/FileDescriptor;Ljava/io/FileDescriptor;Llibcore/util/MutableLong;J)J  (dalvikvm)
    E(23966) RegisterNatives failed for 'libcore/io/Posix', aborting  (JNIHelp)

Change-Id: I434aee679bd7c2760404b7790b996f7f86ed9b44
1 file changed