私はGWT 2.6.1アプリケーションにguavaを追加しようとしています。私はguava-19.0.jarとguava-gwt-19.0.jarを含めました。GWTアプリケーションにGuava GWTを含める
私は "MyApp.gwt.xml"ファイルに <inherits name="com.google.common.collect.Collect" />
を追加しました。私がスーパーデベロッパーモードでアプリを実行すると、このエラーが発生し、何をすべきかわかりません。
<inherits name="com.google.common.base.Base" />
Compile with -strict or with -logLevel set to TRACE or DEBUG to see all errors.
[ERROR] Errors in 'jar:file:/C:/Projects/my_proj/code/my_gwt_app/main_app/libs/guava/guava-gwt-19.0.jar!/com/google/common/collect/super/com/google/common/collect/RegularImmutableAsList.java'
[ERROR] Line 20: The import com.google.j2objc cannot be resolved
[ERROR] Line 31: Weak cannot be resolved to a type
[ERROR] Compiler returned false
私はグアバを使用している単一のクラスがあり、以下の輸入があります
import com.google.common.base.Predicate;
import com.google.common.collect.Iterables;
import com.google.common.collect.Lists;
私は「スーパー」フォルダ/パッケージ参照がにあるものを、以下ではありませんよ。 com.google.common.collect.super.com.google.common.collect
パッケージがありますが、私のgwt.xmlファイルでそのパッケージを参照する方法がわかりません。
ビルドパスにj2objcアノテーションを追加しても、ステルスラビと同じメッセージが表示されます。なぜ私の人生のために理由を把握することはできません。 – RLHawk
モジュールのgwt.xmlファイルに継承を追加しましたか? –