android相关错误

1. Emulator: emulator: ERROR: GPU emulation is disabled.

http://blog.youkuaiyun.com/computerheart/article/details/73739577

这时需要检查一下 虚拟设备的设置,编辑设置时,将Graphics 修改为 Hardware-GLES2.0  后,保存设置,重新开启虚拟机即可正常打开。


2. javah生成jni头文件 

http://blog.youkuaiyun.com/jiuyueguang/article/details/9404237

两者结合,相当好用~

Error: cannot access android.app.Activity
  class file for android.app.Activity not found

The native methods declared in your java class is enough for generating JNI header. In your example, the command javah's option -classpath is not very useful. Suppose com/test/prueba/ACK.java is the class you process to generate JNI header. You can change the working directory to {project_dir}\src, execute the command
javah com.test.prueba.ACK

the corresponding JNI header file com_test_prueba_ACK.h will be created in the current directory.




3.  JNI项目提示“Unresolved inclusion: <jni.h>”的解决方案:

主要是这个target一开始为android-26,但是ndk里面最高到android-24,所以怎么改都不对。。

主要参考这个,其他的改过android target后没试过,不知道对不对

http://blog.youkuaiyun.com/songyuc/article/details/51339711


4.  Symbol 'NULL' could not be resolved

https://www.crifan.com/ubuntu_eclipse_cross_compile_symbol_null_could_not_be_resolved/

关键点:找到NULL的定义文件,将其加入c/c++  include中


5. 关于android某些手机java.lang.UnsatisfiedLinkError: No implementation found for ......的问题
关键点:libs不对应,建所有.so的libs

http://blog.youkuaiyun.com/xulike1990/article/details/54848323


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值