JavaShuo
栏目
标签
kotlin:The feature "array literals in annotations" is only available since language version 1.2
时间 2021-01-08
标签
kotlin
gradle
array literal
栏目
Java
繁體版
原文
原文链接
用android studio3.0练习kotlin项目时用到了Dagger,然后在给注解传入数组字面量的时候遇到了如题的编译异常,问题直接翻译过来的意思就是"'在注解中使用数组字面量'的特性只能从kotlin1.2版本开始"。然后我查了一下项目根目录下的build.gradle文件,发现使用的是1.1.51版本,于是将kotlin版本号改为1.2.0以后重新编译就OK了。 图1. 然后特地到ko
>>阅读原文<<
相关文章
1.
Syntax error, annotations are only available if source level is 1.5 or greater
2.
Syntax error, annotations are only available if source level is 1.5 or greater错误
3.
打包 Syntax error, annotations are only available if source level is 1.5 or greater
4.
SOAP Version 1.2
5.
fx:deploy is not available in
6.
Eclipse配置错误 —— Syntax error, annotations are only available if source level is 1.5 or greater
7.
错误Node.js vnde.0.0 is only available in 32-bit
8.
Java Programming Language Enhancements
9.
find-if-an-item-is-in-a-javascript-array
10.
Why Pascal is Not My Favorite Programming Language
更多相关文章...
•
RSS
元素
-
RSS 教程
•
Docker version 命令
-
Docker命令大全
•
Composer 安装与使用
•
Kotlin学习(二)基本类型
相关标签/搜索
language
version
annotations
available
literals
feature
PRIMES is in P
array+array
array
1.2
Java
Gradle
MyBatis教程
Redis教程
0
分享到微博
分享到微信
分享到QQ
每日一句
每一个你不满意的现在,都有一个你没有努力的曾经。
最新文章
1.
安装cuda+cuDNN
2.
GitHub的使用说明
3.
phpDocumentor使用教程【安装PHPDocumentor】
4.
yarn run build报错Component is not found in path “npm/taro-ui/dist/weapp/components/rate/index“
5.
精讲Haproxy搭建Web集群
6.
安全测试基础之MySQL
7.
C/C++编程笔记:C语言中的复杂声明分析,用实例带你完全读懂
8.
Python3教程(1)----搭建Python环境
9.
李宏毅机器学习课程笔记2:Classification、Logistic Regression、Brief Introduction of Deep Learning
10.
阿里云ECS配置速记
本站公众号
欢迎关注本站公众号,获取更多信息
相关文章
1.
Syntax error, annotations are only available if source level is 1.5 or greater
2.
Syntax error, annotations are only available if source level is 1.5 or greater错误
3.
打包 Syntax error, annotations are only available if source level is 1.5 or greater
4.
SOAP Version 1.2
5.
fx:deploy is not available in
6.
Eclipse配置错误 —— Syntax error, annotations are only available if source level is 1.5 or greater
7.
错误Node.js vnde.0.0 is only available in 32-bit
8.
Java Programming Language Enhancements
9.
find-if-an-item-is-in-a-javascript-array
10.
Why Pascal is Not My Favorite Programming Language
>>更多相关文章<<