```
public class Binder implements IBinder {
//...
/* mObject is used by native code, do not remove or rename */
private int mObject; //这个对象保存的就是JavaBBinder的指针
private IInterface mOwner;
private String mDescriptor;
```
private static final class ProxyActivityManagerServcie extends Binder {
private static final String CLASS_NAME = "android.app.IActivityManager";
private static final String DESCRIPTOR = "android.app.IActivityManager";
private static final int s_broadcastIntent_code;
楼主,我把4.0框架下的include和lib放到我本地JNI下编译,用你的git上的项目,错误提示:
/root/android/android-ndk-r9d/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: ./obj/local/armeabi/objs/proxybinder/proxyBinder/proxybinder.o: in function Main():jni/proxyBinder/proxybinder.cpp:68: error: undefined reference to 'android::defaultServiceManager()'
/root/android/android-ndk-r9d/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: ./obj/local/armeabi/objs/proxybinder/proxyBinder/proxybinder.o: in function Main():jni/proxyBinder/proxybinder.cpp:74: error: undefined reference to 'android::String16::String16(char const*)'
/root/android/android-ndk-r9d/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: ./obj/local/armeabi/objs/proxybinder/proxyBinder/proxybinder.o: in function Main():./jni/include/utils/StrongPointer.h:149: error: undefined reference to 'android::RefBase::decStrong(void const*) const'
/root/android/android-ndk-r9d/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: ./obj/local/armeabi/objs/proxybinder/proxyBinder/proxybinder.o: in function Main():jni/proxyBinder/proxybinder.cpp:74: error: undefined reference to 'android::String16::~String16()'
/root/android/android-ndk-r9d/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: ./obj/local/armeabi/objs/proxybinder/proxyBinder/proxybinder.o: in function Main():./jni/include/utils/StrongPointer.h:149: error: undefined reference to 'android::RefBase::decStrong(void const*) const'
/root/android/android-ndk-r9d/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: ./obj/local/armeabi/objs/proxybinder/proxyBinder/proxybinder.o: in function Main():jni/proxyBinder/proxybinder.cpp:79: error: undefined reference to 'android::AndroidRuntime::mJavaVM'
请教一下,这个错误要怎么解决。