You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

使用Figma Relay插件导入Android Studio时出现URISyntaxException异常

问题描述

尝试使用Relay插件将Figma中的UI包导入Android Studio时失败,抛出java.net.URISyntaxException异常,具体错误信息如下:

java.net.URISyntaxException: Illegal character in query at index 129: https://api.figma.com/v1/files/q5bMp2dVDdo4K2QuuZ4svG/versions?page_size=30&column=date&secondary_column=default&after=2024-12-23 10:28:10 UTC&secondary_after=2165256644169284935

使用版本信息:

  • Android Studio:Ladybug Feature Drop | 2024.2.2 Build #AI-242.23726.103.2422.12816248
  • Relay for Android Studio:0.3.12-final
解决方案

这个异常是因为请求URL的after参数中包含未编码的空格(2024-12-23 10:28:10 UTC里的空格),而URL规范不允许直接出现这类字符。可以按以下步骤解决:

  • 优先升级Relay插件到最新版本:这类URL编码问题大概率在后续版本中被修复,直接在Android Studio插件市场搜索Relay并更新后重试导入。
  • 清理缓存后重试:关闭Android Studio和Figma的Relay插件,清理Android Studio缓存(File → Invalidate Caches... → Invalidate and Restart),再重新发起导入流程。
  • 检查Figma版本时间:如果升级后仍有问题,确认导入时选择的Figma版本时间参数没有特殊字符,必要时切换到其他版本尝试导入。

内容的提问来源于stack exchange,提问作者Sir Codesalot

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.06.14 15:54:50