【发布时间】:2021-09-05 23:31:48
【问题描述】:
是否可以在不使用 android studio 的情况下在 linux 上制作可执行二进制文件?
例子
adb shell /system/bin/ifconfig
日志
Encap link: Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope: Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:159 errors:0 dropped:0 overruns:0 frame:0
TX packets:159 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:524428 TX bytes:524428
........ more
对于这个例子,可执行文件不需要做任何特别的事情——只要 hello world 代码就可以了。
【问题讨论】:
标签: android android-ndk executable bin ndk-build