我在Android开发控制台中收到以下崩溃报告.我的应用程序在我尝试使用该应用程序的模拟器或设备上正常运行,但出于某种原因,在Galaxy Nexus(Maguro)上它无法运行.我也没有得到任何编译错误.
java.lang.NoClassDefFoundError: java.util.Objects
at com.nivelsonic.nivelsonic.MyTankActivity$5.onResponse(MyTankActivity.java:199)
at com.nivelsonic.nivelsonic.MyTankActivity$5.onResponse(MyTankActivity.java:160)
at com.android.volley.toolbox.StringRequest.deliverResponse(StringRequest.java:60)
at com.android.volley.toolbox.StringRequest.deliverResponse(StringRequest.java:30)
at com.android.volley.ExecutorDelivery$ResponseDeliveryRunnable.run(ExecutorDelivery.java:99)
at android.os.Handler.handleCallback(Handler.java:730)
at android.os.Handler.dispatchMessage(Handler.java:92)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:5103)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:525)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:737)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
at dalvik.system.NativeStart.main(Native Method)
Run Code Online (Sandbox Code Playgroud)
MyTankActivity.java
public void drawTankStatus() {
tankView = (TankView) this.findViewById(R.id.vMyTank);
tvLocation = (TextView) this.findViewById(R.id.tvLocation);
tvLevel = (TextView) this.findViewById(R.id.tvLevel);
ivRssi = (ImageView) this.findViewById(R.id.ivRssi);
ivSettings = (ImageView) this.findViewById(R.id.ivSettings);
ivAlert = (ImageView) this.findViewById(R.id.ivAlert);
final Response.Listener<String> responseListener = new Response.Listener<String>() {
@Override
public void onResponse(String response) {
try {
JSONObject jsonResponse …
Run Code Online (Sandbox Code Playgroud)