android用gdb调试时遇到报错: ERROR: The device does not support the application's targetted CPU ABIs!

android用gdb调试时遇到报错:

ERROR: The device does not support the application's targetted CPU ABIs!

       Device supports:  armeabi 
       Package supports: Android NDK: There is no Android.mk under ./jni    
Android NDK: If this is intentional  please define APP_BUILD_SCRIPT to point   

Android NDK: to a valid NDK build script.    


很多人说是application.mk里指定cpu类型就好,实际上默认值就支持armeabi,所以不是这个问题。

真正的问题根源是当前目录的.jni文件夹下没有有效的android.mk文件。在jni文件夹下建立android.mk即可,或者如果工程在其他地方有androidmk,则在当前jni文件夹下的application.mk里设定APP_BUILD_SCRIPT := 路径,指向android.mk文件即可。

你可能感兴趣的:(android用gdb调试时遇到报错: ERROR: The device does not support the application's targetted CPU ABIs!)