Codenameone java.lang.IllegalStateException:还原时下溢

Codenameone java.lang.IllegalStateException:还原时下溢,codenameone,Codenameone,今天发送android build后,该应用程序开始频繁崩溃,尤其是在编辑文本字段时。以下是stacktrace崩溃时的状态。有什么建议吗 12-26 23:57:01.239: E/AndroidRuntime(21019): java.lang.IllegalStateException: Underflow in restore 12-26 23:57:01.239: E/AndroidRuntime(21019): at android.graphics.Canvas.native

今天发送android build后,该应用程序开始频繁崩溃,尤其是在编辑文本字段时。以下是stacktrace崩溃时的状态。有什么建议吗

12-26 23:57:01.239: E/AndroidRuntime(21019): java.lang.IllegalStateException: Underflow in restore
12-26 23:57:01.239: E/AndroidRuntime(21019):    at android.graphics.Canvas.native_restore(Native Method)
12-26 23:57:01.239: E/AndroidRuntime(21019):    at android.graphics.Canvas.restore(Canvas.java:554)
12-26 23:57:01.239: E/AndroidRuntime(21019):    at com.codename1.impl.android.AndroidGraphics.paintComponentBackground(AndroidGraphics.java:370)
12-26 23:57:01.239: E/AndroidRuntime(21019):    at com.codename1.impl.android.AndroidAsyncView$AsyncGraphics$11.execute(AndroidAsyncView.java:484)
12-26 23:57:01.239: E/AndroidRuntime(21019):    at com.codename1.impl.android.AndroidAsyncView$AsyncOp.executeWithClip(AndroidAsyncView.java:70)
12-26 23:57:01.239: E/AndroidRuntime(21019):    at com.codename1.impl.android.AndroidAsyncView.onDraw(AndroidAsyncView.java:109)
12-26 23:57:01.239: E/AndroidRuntime(21019):    at android.view.View.draw(View.java:15635)
12-26 23:57:01.239: E/AndroidRuntime(21019):    at android.view.View.updateDisplayListIfDirty(View.java:14568)
.......

这是渐变渲染代码中的回归

我建议你避免使用渐变。它们比仅仅使用图像要慢,而且内存更昂贵。我们对它们进行了一些优化,但是这些优化可能会导致它们在设备上看起来与模拟器不同