Android JNI之——UnsatisfiedLinkError errordlopen failed: cannot locate symbol "rand"
2015-06-22 14:07
761 查看
转载请注明出处:/article/8380773.html
E/dalvikvm(19498): dlopen("/data/app-lib/com.mystylinglounge.salonluatest-2/libcocos2dlua.so") failed: dlopen failed: cannot locate symbol "rand" referenced by "libcocos2dlua.so"...
V/Trevor (19498): UnsatisfiedLinkError errordlopen failed: cannot locate symbol "rand" referenced by "libcocos2dlua.so"...
https://code.google.com/p/android-developer-preview/issues/detail?id=168
gz-rios-mac05:proj.android mac05$ ndk-build -v
GNU Make 3.81
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.
This program built for x86_64-apple-darwin
原来是对机器的位搞错了,,我的android 机器是32 位,但 应该下32 位的ndk
https://developer.android.com/tools/sdk/ndk/index.html
l
Android NDK, Revision 10(July
2014)
Important changes:
Added 3 new ABIs, all 64-bit: arm64-v8a, x86_64, mips64. Note that:
GCC 4.9 is the default compiler for 64-bit ABIs. Clang is currently version 3.4.
NDK_TOOLCHAIN_VERSION=clangmay not work for arm64-v8a and mips64.
Android-L is the first level with 64-bit support. Note that this APIlevel is a temporary one, and only for L-preview. An actual API level number will replace it atL-release.
This release includes now includes
all32and
all64settings for
APP_ABI.
APP_ABI=all32is equivalent to
APP_ABI=armeabi,armeabi-v7a,x86,mips.
APP_ABI=all64is equivalent to
APP_ABI=arm64-v8a,x86_64,mips64.
APP_ABI=allselects all ABIs.
虽然上面说的APP_ABI=ALL32 但其实指的是32bit 的NDK 包下午的编译选项,并不是说64bit NDK package 可以编译出32bit 的armeabi lib
相关文章推荐
- Android:解决ExpandableListView中添加button后item项点击事件问题
- android学习笔记二 ---- adb常用指令
- Android实机调试出现“您的手机未安装此应用”
- android应用程序的安装方式与原理
- GSON 学习
- 初探android的Camera和Matrix
- Android学习笔记之—采用Pull解析XML文件
- Android学习【AutoCompleteTextView】
- 安卓表格布局android:collapseColumns,android:shrinkColumns和stretchColumn
- Android学习笔记之—XML文件的序列化
- Android在View拉丝工艺和invalidate()和其他相关方法
- android中使用DisplayMetrics获取屏幕参数
- Android聊天软件的开发--聊天通信
- Android--MeasureSpec学习
- Android开发之Handler(五)回调函数拦截
- Fragment在Android机顶盒上的应用
- Android-ScrollView中listview控件高度正确显示
- Android学习笔记(四十):Preference使用
- Android 下载文件及写入SD卡
- Android:使用Gon解析解析Json