
android
twilightdream
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
新版 Android Studio 编译输出中文乱码问题
首先,网上的什么tasks.withType(JavaCompile) { options.encoding = "UTF-8" }修改 Project Encodeing,这些全都是骗人的,全都无效。真正的解决方案:点击工具栏上的放大镜 Search Everywhere 按钮,全局搜索Edit Custom VM Options在打开的 studio64.exe.vmoptions 文件,文件末尾加入-Dfile.encoding=UTF-8重启 Android St原创 2020-07-28 15:31:54 · 2523 阅读 · 4 评论 -
解决 Android Studio Error:Cause: unable to find valid certification path to requested target
命令行进入 Android Studio 安装目录里的 jre 证书目录,如/home/yangming/Develop/Android/android-studio/jre/jre/lib/security执行命令,添加 https 证书信任keytool -import -alias cacert -keystore cacerts -file 证书文件.cer口令 changei...原创 2018-09-18 16:55:42 · 24066 阅读 · 16 评论 -
Flutter 热更新无效问题
Error connecting to the service protocol: Exception: Attempted to connect to Dart observatory 5 times, and all attempts failed. Giving up. The URL was ws://127.0.0.1:8111/ws如果运行后输出 Log 是这样,同时使用了代理,...原创 2018-08-06 14:38:43 · 13850 阅读 · 0 评论 -
Linux 环境 Android Studio 新建 JNI 工程,编译报错解决
error while loading shared libraries: libncurses.so.5: cannot open sharederror while loading shared libraries: libtinfo.so.5: cannot open shared如果是 64 位 Linux,仔细查看错误信息,如果包含以上报错信息,是因为缺少 32 位库,安装 32 位库s...原创 2018-04-09 10:49:35 · 428 阅读 · 0 评论 -
Ubuntu 交叉编译 OpenSSL,并在 Android 中使用
Ubuntu编译OpenSSL,Linux交叉编译,Android原创 2017-07-07 16:30:45 · 3258 阅读 · 0 评论 -
Android 7.1 源码编译
一、下载源码需要curl和git,没有需要装一下sudo apt-get install curlsudo apt-get install gitgit需要配置用户名和邮箱git config --global user.name "xxxxxx"git config --global user.email "xxxxxx@xxx.com"用curl下载一份repo文件,这是个python脚本c原创 2017-06-09 08:51:37 · 7498 阅读 · 1 评论 -
Ubuntu安装FlatBuffers
去https://github.com/google/flatbuffers/releases下载Source codecmake .编译make安装sudo make install配置动态链接库sudo ldconfig检查 FlatBuffers 是否安装成功flatc --version原创 2017-06-09 08:48:59 · 3198 阅读 · 0 评论 -
Ubuntu安装Protocol Buffer
去https://github.com/google/protobuf/releases/下载Source code安装 Protocol Buffer 依赖sudo apt install autoconf automake libtool curl解压,进入解压后的文件夹,运行 autogen.sh 脚本./autogen.sh运行 configure.sh 脚本./configure编译未编译原创 2017-06-09 08:48:27 · 3607 阅读 · 0 评论 -
Android Studio编译使用了Maven的工程卡住的解决方案
USER_HOME/.gradle/文件夹下新建init.gradleallprojects{ repositories { def REPOSITORY_URL = 'http://maven.aliyun.com/nexus/content/groups/public' all { ArtifactRepository repo ->原创 2017-05-07 13:02:49 · 1143 阅读 · 0 评论 -
Android Studio中文乱码解决
在项目下的build.gradle下添加以下代码即可解决tasks.withType(JavaCompile) { options.encoding = "UTF-8" }转载 2016-11-06 19:28:08 · 1251 阅读 · 0 评论 -
Android Studio logcat颜色
File -> Settings -> Editor -> Colors &Fonts -> Android LogcatLog级别 色值VERBOSEBBBBBBDEBUG0047ABINFO16982BWARNF28500ERRORFF2400ASSERT8B原创 2016-11-03 12:35:09 · 423 阅读 · 0 评论 -
Ubuntu 16.04添加32位库
sudo apt install libc6-dev-i386sudo apt-get install lib32z1第二句可以解决 Android Studio Gradle Build Running卡住的问题。原创 2016-08-14 22:01:09 · 5655 阅读 · 0 评论 -
Android添加第三方so文件
调用第三方so文件时, 需要对其作PREBUILT处理, 步骤如下:1. 在project/jni目录下创建prebuilt(名字可以自己取).2. 将第三方.so放到prebuilt中,并创建Android.mk, 内容如下: LOCAL_PATH := $(call my-dir) include $(CLEAR_VARS) LOCAL_MODULE :=转载 2013-11-13 14:15:07 · 680 阅读 · 0 评论