GWT 2.8.1 编译错误检查您的类路径是否包含所有必需的源根

问题描述 投票:0回答:1
[ERROR] Errors in 'generated://5D5A9B253D17A16EBB484765B24CB357/com/badlogic/gwtref/client/IReflectionCacheAppXAGenerated.java'
  [ERROR] Line 7: Too many constants, the constant pool for IReflectionCacheAppXAGenerated would exceed 65536 entries
  See snapshot: C:\Users\LAPTOP\AppData\Local\Temp\com.badlogic.gwtref.client.IReflectionCacheAppXAGenerated4262133575954183763.java
Tracing compile failure path for type 'com.badlogic.gwtref.client.IReflectionCacheAppXAGenerated'
  [ERROR] Errors in 'generated://5D5A9B253D17A16EBB484765B24CB357/com/badlogic/gwtref/client/IReflectionCacheAppXAGenerated.java'
     [ERROR] Line 7: Too many constants, the constant pool for IReflectionCacheAppXAGenerated would exceed 65536 entries 
[ERROR] Hint: Check that the type name 'com.badlogic.gwtref.client.IReflectionCacheAppXAGenerated' is really what you meant
[ERROR] Hint: Check that your classpath includes all required source roots
[ERROR] Errors in 'sa/com/doit/appx/gwtref/super/com/badlogic/gwtref/client/ReflectionCache.java'
  [ERROR] Line 133: Rebind result 'com.badlogic.gwtref.client.IReflectionCacheAppXAGenerated' could not be found

我使用 gwt 版本 2.8.1 我尝试了版本 2.8.2 但同样的错误

AppxReflect.gwt.xml `

<generate-with class="com.badlogic.gwtref.gen.ReflectionCacheAppXAGenerator">
    <when-type-assignable class="com.badlogic.gwtref.client.IReflectionCacheAppXA" />
</generate-with>
`
gwt libgdx
1个回答
0
投票

这是 GWT 2.10.0 版本的问题。

尝试转到 html 文件夹中的文件 build.gradle 并将 gwtVersion 更改为 2.8.2。

© www.soinside.com 2019 - 2024. All rights reserved.