归档: 2018/6

共 47 篇文章

Android NDK编译错误解决

0x01 问题描述

现象: 将ndk版本升级到 17.0.4754217编译报错

1
2
3
4
5
6
* What went wrong:
Execution failed for task ':app+stub:transformNativeLibsWithStripDebugSymbolForRelease'.
> A problem occurred starting process 'command '/Users/Ivonhoe/Library/Android/sdk/ndk-bundle/toolchains/mips64el-linux-android-4.9/prebuilt/darwin-x86_64/bin/mips64el-linux-android-strip''

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
1
2
3
4
5
6
Caused by: java.io.IOException: Cannot run program "/Users/Ivonhoe/Library/Android/sdk/ndk-bundle/toolchains/mips64el-linux-android-4.9/prebuilt/darwin-x86_64/bin/mips64el-linux-android-strip" (in directory "/Users/Ivonhoe/Workspace/keyaccount-repo/app+stub"): error=2, No such file or directory
at net.rubygrapefruit.platform.internal.DefaultProcessLauncher.start(DefaultProcessLauncher.java:25)
... 4 more
Caused by: java.io.IOException: error=2, No such file or directory
... 5 more

Read More

深入浅出JVM垃圾回收算法

在学习JVM如何进行垃圾回收方法时,发现所谓的JVM垃圾回收思想和现实生活的场景有很多相似的地方。所以用餐厅回收餐桌的方式类比JVM垃圾回收算法,应该能帮助JVM学习的理解和记忆。

Read More