Android

By admin, 7 三月, 2024

安装Android支持:https://zhuanlan.zhihu.com/p/641060592

Android Studio初始化的时候要设置代理。之后要下载SDK模拟器之类,一分钟下不完会弹窗提示重试。如果剩余字节数有变化,不断重试即可,会继续上次进度下载的。要下载合适的SDK版本才能build:Unity对应SDK和NDK版本的对照表

Unity 2022.3依赖旧版本的NDK r23b,在这个页面找到r23c的下载链接,然后把c改称b下载:https://github.com/android/ndk/wiki/Unsupported-Downloads

标签

By admin, 28 四月, 2023

如果下面命令报错:

pip3 install turtle

请下载附件,然后运行:

tar zxvf turtle-0.0.2-fixed.tar.gz
pip3 install -e turtle-0.0.2

然而,安装是成功了,但是Mac上运行没有什么效果。Android上的QPython上运行则什么属性都没有。因此,想在Android上用turtle,应该直接安装Pydroid 3,它内置了tutle库。

标签

By admin, 27 五月, 2021
  1. Enable Developer Options in Device (Settings-->About Phone-->Tap 7 times on build number)
  2. Turn on Developer options and Enable USB Debugging (in Developer Options)
  3. Add this line in your custom Application class or in the Activity where the Web View is loaded

    // if your build is in debug mode, enable inspecting of web views

标签

By admin, 14 五月, 2021

从Android Studio 2.2以后,原生代码更倾向于使用CMake(CMakeLists.txt)来编译,而不是Android.mk(但也一直支持,不过不允许混用)。参考:Android.mk转换成CMakeLists.txt

Android的工程可以在命令行下编译:

工程目录> ./gradlew assembleDebug

CMake的基本用法 

调试基础

默认环境已内置LLDB,可以直接对C++文件进行断点调试。需要先以Debug App模式启动,然后在应用等待调试进程连接的时候,点击Attch Debuger to Android Process.

标签