我有一堂课:
public class ObjectSettings
{
public TextureRegion Region;
public ObjectType ObjectType;
public ObjectAffect ObjectAffect;
public String Name;
public int MinimumInterval = 0;
public int MaximumInterval = 0;
public Vector2 Center;
public static ObjectSettings load(int number) {
ObjectSettings settings = null;
try {
Json json = new Json();
settings = json.fromJson(ObjectSettings.class, Integer.toString(number) +
Constants.FILE_EXT_JSON));
} finally {};
return settings;
}
}
当我使用 proguard 时,我收到以下错误:
02-19 08:48:56.709: E/AndroidRuntime(29042): com.badlogic.gdx.utils.SerializationException: Error reading file: data/settings/0.json
和:
02-19 08:48:56.709: E/AndroidRuntime(29042): Caused by: com.badlogic.gdx.utils.SerializationException: Field not found: ObjectType (com.myname.mapapp.data.ObjectSettings)
我需要在我的 proguard.cfg 文件中添加什么?