Error: Flag android.useDeprecatedNdk is no longer supported and will be removed in the next version
2018-01-05 15:59
1361 查看
今天学习用NDK进行开发,运行到手机上报了个错,先把错误日志贴上:
刚开始开这个错误日志有点懵了,但是我们仔细看一下会发现android.useDeprecatedNdk不在被支持了,但是在日志后面给了我们一个解决办法To continue using the deprecated NDK compile for another 60 days, set
android.deprecatedNdkCompileLease=1515138691572 in gradle.properties大概意思是想要继续使用已弃用的NDK编译60天,在gradle.properties文件里把android.useDeprecatedNdk去掉换成android.deprecatedNdkCompileLease=1515138691572就行了,我猜有肯能每个人错误日志里得到android.deprecatedNdkCompileLease=1515138691572不一定一样,所以尽量使用自己错日志里的进行运行。
Error: Flag android.useDeprecatedNdk is no longer supported and will be removed in the next version of Android Studio. Please switch to a supported build system. Consider using CMake or ndk-build integration. For more information, go to: https://d.android.com/r/studio-ui/add-native-code.html#ndkCompile To get started, you can use the sample ndk-build script the Android plugin generated for you at: E:\SwimmingSpace\ndktest\build\intermediates\ndk\debug\Android.mk Alternatively, you can use the experimental plugin: https://developer.android.com/r/tools/experimental-plugin.html To continue using the deprecated NDK compile for another 60 days, set android.deprecatedNdkCompileLease=1515138691572 in gradle.properties
刚开始开这个错误日志有点懵了,但是我们仔细看一下会发现android.useDeprecatedNdk不在被支持了,但是在日志后面给了我们一个解决办法To continue using the deprecated NDK compile for another 60 days, set
android.deprecatedNdkCompileLease=1515138691572 in gradle.properties大概意思是想要继续使用已弃用的NDK编译60天,在gradle.properties文件里把android.useDeprecatedNdk去掉换成android.deprecatedNdkCompileLease=1515138691572就行了,我猜有肯能每个人错误日志里得到android.deprecatedNdkCompileLease=1515138691572不一定一样,所以尽量使用自己错日志里的进行运行。
相关文章推荐
- 解决Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in
- The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead [duplicate]
- Deprecated: mysql_connect(): The mysqlextension is deprecated and will be removed in the future: use
- [mysql] mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in
- 解决mysql_connect(): The mysql extension is deprecated and will beremoved in the future: use mysqli or
- 解决Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead
- 解决Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in
- neutron CLI is deprecated and will be removed in the future. Use openstack CLI instead
- 1287, "'@@tx_isolation' is deprecated and will be removed in a future release. Please use '@@transa
- 解决Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future:
- 解决Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future:
- 解决Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future:
- 解决Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future:
- Apache2.4.6添加虚拟主机提示:NameVirtualHost has no effect and will be removed in the next release /usr/local/apache/conf/extra/httpd-vhosts.conf
- 解决Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future:
- 解决Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future:
- Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: us
- Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future:
- 解决Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: