Я получаю следующий отчет о сбое в консоли разработки Android.
Мое приложение хорошо работает на симуляторе или устройствах, на которых я попробовал приложение, но по какой -то причине на Galaxy Nexus (Maguro) это не так T -беги. Я тоже не получаю ошибок компиляции. < /P>
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)
< /code>
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 responseListener = new Response.Listener() {
@Override
public void onResponse(String response) {
try {
JSONObject jsonResponse = new JSONObject(response);
//int success = jsonResponse.getInt("success");
JSONArray tank_data = jsonResponse.getJSONArray("tank_data");
if (tank_data.length() > 0) {
int i;
for (i = 0; i < tank_data.length(); i++) {
//Log.v("Result--", "" + tank_data.getString(i));
JSONObject tankObj = tank_data.getJSONObject(0);
location = (String) tankObj.getString("Location");
color = (String) tankObj.getString("Color");
level = (int) tankObj.getInt("CurrentLevel");
rssi = (int) tankObj.getInt("RSSI");
phone = (String) tankObj.getString("Phone");
status = (int) tankObj.getInt("Status");
Integer numOfNotifications = tankObj.getInt("NumberOfNotifications");
if (numOfNotifications > 0) {
ivAlert.setImageResource(R.drawable.alert_red);
} else {
ivAlert.setImageResource(R.drawable.alert);
}
tvLocation.setText(location);
if (level
Подробнее здесь: https://stackoverflow.com/questions/377 ... il-objects
Java.lang.noclassdeffounderror: java.util.objects ⇐ Android
Форум для тех, кто программирует под Android
-
Anonymous
1738110175
Anonymous
Я получаю следующий отчет о сбое в консоли разработки Android.
Мое приложение хорошо работает на симуляторе или устройствах, на которых я попробовал приложение, но по какой -то причине на Galaxy Nexus (Maguro) это не так T -беги. Я тоже не получаю ошибок компиляции. < /P>
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)
< /code>
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 responseListener = new Response.Listener() {
@Override
public void onResponse(String response) {
try {
JSONObject jsonResponse = new JSONObject(response);
//int success = jsonResponse.getInt("success");
JSONArray tank_data = jsonResponse.getJSONArray("tank_data");
if (tank_data.length() > 0) {
int i;
for (i = 0; i < tank_data.length(); i++) {
//Log.v("Result--", "" + tank_data.getString(i));
JSONObject tankObj = tank_data.getJSONObject(0);
location = (String) tankObj.getString("Location");
color = (String) tankObj.getString("Color");
level = (int) tankObj.getInt("CurrentLevel");
rssi = (int) tankObj.getInt("RSSI");
phone = (String) tankObj.getString("Phone");
status = (int) tankObj.getInt("Status");
Integer numOfNotifications = tankObj.getInt("NumberOfNotifications");
if (numOfNotifications > 0) {
ivAlert.setImageResource(R.drawable.alert_red);
} else {
ivAlert.setImageResource(R.drawable.alert);
}
tvLocation.setText(location);
if (level
Подробнее здесь: [url]https://stackoverflow.com/questions/37778644/java-lang-noclassdeffounderror-java-util-objects[/url]
Ответить
1 сообщение
• Страница 1 из 1
Перейти
- Кемерово-IT
- ↳ Javascript
- ↳ C#
- ↳ JAVA
- ↳ Elasticsearch aggregation
- ↳ Python
- ↳ Php
- ↳ Android
- ↳ Html
- ↳ Jquery
- ↳ C++
- ↳ IOS
- ↳ CSS
- ↳ Excel
- ↳ Linux
- ↳ Apache
- ↳ MySql
- Детский мир
- Для души
- ↳ Музыкальные инструменты даром
- ↳ Печатная продукция даром
- Внешняя красота и здоровье
- ↳ Одежда и обувь для взрослых даром
- ↳ Товары для здоровья
- ↳ Физкультура и спорт
- Техника - даром!
- ↳ Автомобилистам
- ↳ Компьютерная техника
- ↳ Плиты: газовые и электрические
- ↳ Холодильники
- ↳ Стиральные машины
- ↳ Телевизоры
- ↳ Телефоны, смартфоны, плашеты
- ↳ Швейные машинки
- ↳ Прочая электроника и техника
- ↳ Фототехника
- Ремонт и интерьер
- ↳ Стройматериалы, инструмент
- ↳ Мебель и предметы интерьера даром
- ↳ Cантехника
- Другие темы
- ↳ Разное даром
- ↳ Давай меняться!
- ↳ Отдам\возьму за копеечку
- ↳ Работа и подработка в Кемерове
- ↳ Давай с тобой поговорим...
Мобильная версия