我在 google play console 中遇到这个问题,但在 ide 中不再出现(我使用 intelij)。
我怀疑proguard可能有问题。
这是我的proguard:
-verbose
-dontwarn com.badlogic.gdx.backends.android.AndroidFragmentApplication
# Required if using Gdx-Controllers extension
-keep class com.badlogic.gdx.controllers.android.AndroidControllers
-keep class com.badlogic.gdx.scenes.scene2d.ui.**{
**[] $VALUES;
*;
}
-keep class com.your.game.data.**{
**[] $VALUES;
*;
}
# Required if using Box2D extension
-keepclassmembers class com.badlogic.gdx.physics.box2d.World {
boolean contactFilter(long, long);
void beginContact(long);
void endContact(long);
void preSolve(long, long);
void postSolve(long, long);
boolean reportFixture(long);
float reportRayFixture(long, float, float, float, float, float);
}
gradle.properties给android.enableR8.fullMode = false