各位好,刚开始学习android, 现在按照这个网址:http://blog.csdn.net/satiling/article/details/6914466(其实就是安装编译器,然后编译helloworld程序) 把一个helloworld 程序编译成二进制,然后 push到虚拟机中,在终端运行,发现即使我把权限改成 chmod 777 testhello ,然后./testhello还是提示说:permission denied请问下 这个是怎么回事,谢谢!
解决方案 »
- Android CTS测试之testDownloadManagerDestination failed
- JS 调用android的方法该怎么调啊
- 怎样将自己用eclipse开发的应用放到系统应用里面?
- 谷歌代码宏 DECLARE_META_INTERFACE 命名探讨
- 网络传输String对象
- android布局问题
- 下载的文件在App退出后丢失
- 如何辨别是否为山寨应用
- tablelayout高度问题
- 为什么利用android:launchMode设置启动模式为singleTop活动还是为standard启动模式?
- EditText 怎么能够不让软键盘自动弹出?
- android4.0上没有接收到android.intent.action.BOOT_COMPLETED
而我放到/mnt/sdcard后,打印说:# cd sdcard
# ls
LOST.DIR
hell
# . ./hell
./hell: 1: Syntax error: word unexpected (expecting ")")
暂时不知道为什么?
我的程序如下:
#include <stdio.h>
int main()
{
printf("hello world\n");
return 0;
}编译语句是:arm-none-linux-gnueabi-gcc helloworld.c -o hell然后是./adb push hell /mnt/sdcard
我执行 ./adb push hell /mnt/sdcard
终端打印是:77 KB/s (5742 bytes in 0.072s)
而我的hell 正好是5742个字节,感觉传输完了啊!?????无语了~~~~
那么你为什么不能运行呢?
首先,在进adb push之前先设置权限:adb root试试,如果不行那么你在adb push之前设置:adb remount。这样应该就能push进去了。