本人idea 版本为 2021.1,顺利编译 thingsboard 打开进行源码阅读时,发现报 Cannot resolve symbol ‘TransportProtos’,如下图:

解决 thingsboard在 idea 报Cannot resolve symbol 'TransportProtos'
image.png

解决方式:打开idea菜单: File->setting->plugins 搜索 proto*, 安装 protocol Buffer Linter插件, 并重启

解决 thingsboard在 idea 报Cannot resolve symbol 'TransportProtos'
image.png

重启后,又出一个问题:

 The file size(3.67 MB) exceeds the configured limit(2.56 MB). Code insight features are not available

如图:

解决 thingsboard在 idea 报Cannot resolve symbol 'TransportProtos'
image.png

解决方式:
打开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'
image.png

本文章来源于互联网,如有侵权,请联系删除!原文地址:解决 thingsboard在 idea 报Cannot resolve symbol ‘TransportProtos’

相关推荐: Thingsboard搭建本地开发环境说明

本地开发环境搭建说明 环境要求 JDK 1.8+ Maven 3.6.1+ NodeJs 10.16.0+ Gradle 5.5.1+ 前提要求 项目已经可以顺利build成功 当前示例为Mac,windows与Mac的配置基本一致,建议使用类linux系统 …