本人idea 版本为 2021.1,顺利编译 thingsboard 打开进行源码阅读时,发现报 Cannot resolve symbol ‘TransportProtos’,如下图:
解决方式:打开idea菜单: File->setting->plugins 搜索 proto*, 安装 protocol Buffer Linter
插件, 并重启
重启后,又出一个问题:
The file size(3.67 MB) exceeds the configured limit(2.56 MB). Code insight features are not available
如图:
解决方式:
打开idea 的路径,找到 bin 下的 idea.properties 配置文件, 记事本打开,搜索 idea.max.intellisense.filesize
将值修改更大一些, 再重启idea
# Maximum file size (in KiB) IDE should provide code assistance for.
# The larger file is the slower its editor works and higher overall system memory requirements are
# if code assistance is enabled. Remove this property or set to very large number if you need
# code assistance for any files available regardless of their size.
#---------------------------------------------------------------------
idea.max.intellisense.filesize=5000
本文章来源于互联网,如有侵权,请联系删除!原文地址:解决 thingsboard在 idea 报Cannot resolve symbol ‘TransportProtos’
本地开发环境搭建说明 环境要求 JDK 1.8+ Maven 3.6.1+ NodeJs 10.16.0+ Gradle 5.5.1+ 前提要求 项目已经可以顺利build成功 当前示例为Mac,windows与Mac的配置基本一致,建议使用类linux系统 …