(此方法对IDEA2018版本有效,新的版本可以看这个https://www.algerfan.cn/articles/2019/03/06/1551868940012.html)
文末提供一个可用的activation code(如果报your antivation code could not be validated就去找别的activation code)
然后输入的时候报this license has been cancelled问题,这时候只需要在host中加入
0.0.0.0 https://account.jetbrains.com:443
0.0.0.0 account.jetbrains.com
即可, 安装了switchhost的直接在里面改,没有安装的话,打开hosts文件添加即可。
host文件地址:
mac下:/etc/hosts
windows下:C:\Windows\System32\drivers\etc\hosts
可用的activation code链接:https://blog.csdn.net/lv_dreamer/article/details/103792173
Y9MXSIF79G-eyJsaWNlbnNlSWQiOiJZOU1YU0lGNzlHIiwibGljZW5zZWVOYW1lIjoiSkJGYW1pbHkgQ2hpbmEiLCJhc3NpZ25lZU5hbWUiOiIiLCJhc3NpZ25lZUVtYWlsIjoiIiwibGljZW5zZVJlc3RyaWN0aW9uIjoiIiwiY2hlY2tDb25jdXJyZW50VXNlIjpmYWxzZSwicHJvZHVjdHMiOlt7