|
|
Регистрация Восстановить пароль |
Повторная активизация e-mail |
Регистрация | Задать вопрос |
Заплачу за решение |
Новые сообщения |
Сообщения за день |
Расширенный поиск |
Правила |
Всё прочитано |
|
Опции темы | Поиск в этой теме |
09.07.2017, 18:40 | #1 |
Новичок
Джуниор
Регистрация: 09.07.2017
Сообщений: 5
|
Не запускается приложение(потоки)
Добрый день! Не запускается приложение.
Сам код майн активити Код:
Код:
|
09.07.2017, 18:46 | #2 |
Новичок
Джуниор
Регистрация: 09.07.2017
Сообщений: 5
|
Логи
[SPOILER]07-09 18:05:52.455 16686-16686/? W/Zygote: mz_is_rooted false 07-09 18:05:52.456 16686-16686/? W/Zygote: Failed to unmount /storage/1FB3-0226: Invalid argument 07-09 18:05:52.456 16686-16686/? W/Zygote: Failed to unmount /storage/emulated: Invalid argument 07-09 18:05:52.456 16686-16686/? W/Zygote: Failed to unmount /storage: Invalid argument 07-09 18:05:52.458 16686-16686/? I/art: Late-enabling -Xcheck:jni 07-09 18:05:52.657 16686-16686/com.example.root.yaalkash W/art: Failed execv(/system/bin/dex2oat --runtime-arg -classpath --runtime-arg --instruction-set=arm64 --instruction-set-features=smp,a53 --runtime-arg -Xrelocate --boot-image=/system/framework/boot.art --runtime-arg -Xms64m --runtime-arg -Xmx512m --instruction-set-variant=cortex-a53 --instruction-set-features=default --dex-file=/data/app/com.example.root.yaalkash-2/split_lib_dependencies_apk.apk --oat-file=/data/dalvik-cache/arm64/data@app@com.example.root.yaalkash-2@split_lib_dependencies_apk.apk@cl asses.dex) because non-0 exit status 07-09 18:05:52.951 16686-16686/com.example.root.yaalkash W/art: Failed execv(/system/bin/dex2oat --runtime-arg -classpath --runtime-arg --instruction-set=arm64 --instruction-set-features=smp,a53 --runtime-arg -Xrelocate --boot-image=/system/framework/boot.art --runtime-arg -Xms64m --runtime-arg -Xmx512m --instruction-set-variant=cortex-a53 --instruction-set-features=default --dex-file=/data/app/com.example.root.yaalkash-2/split_lib_slice_0_apk.apk --oat-file=/data/dalvik-cache/arm64/data@app@com.example.root.yaalkash-2@split_lib_slice_0_apk.apk@classes .dex) because non-0 exit status 07-09 18:05:53.029 16686-16686/com.example.root.yaalkash W/art: Failed execv(/system/bin/dex2oat --runtime-arg -classpath --runtime-arg --instruction-set=arm64 --instruction-set-features=smp,a53 --runtime-arg -Xrelocate --boot-image=/system/framework/boot.art --runtime-arg -Xms64m --runtime-arg -Xmx512m --instruction-set-variant=cortex-a53 --instruction-set-features=default --dex-file=/data/app/com.example.root.yaalkash-2/split_lib_slice_1_apk.apk --oat-file=/data/dalvik-cache/arm64/data@app@com.example.root.yaalkash-2@split_lib_slice_1_apk.apk@classes .dex) because non-0 exit status 07-09 18:05:53.105 16686-16686/com.example.root.yaalkash W/art: Failed execv(/system/bin/dex2oat --runtime-arg -classpath --runtime-arg --instruction-set=arm64 --instruction-set-features=smp,a53 --runtime-arg -Xrelocate --boot-image=/system/framework/boot.art --runtime-arg -Xms64m --runtime-arg -Xmx512m --instruction-set-variant=cortex-a53 --instruction-set-features=default --dex-file=/data/app/com.example.root.yaalkash-2/split_lib_slice_2_apk.apk --oat-file=/data/dalvik-cache/arm64/data@app@com.example.root.yaalkash-2@split_lib_slice_2_apk.apk@classes .dex) because non-0 exit status 07-09 18:05:53.185 16686-16686/com.example.root.yaalkash W/art: Failed execv(/system/bin/dex2oat --runtime-arg -classpath --runtime-arg --instruction-set=arm64 --instruction-set-features=smp,a53 --runtime-arg -Xrelocate --boot-image=/system/framework/boot.art --runtime-arg -Xms64m --runtime-arg -Xmx512m --instruction-set-variant=cortex-a53 --instruction-set-features=default --dex-file=/data/app/com.example.root.yaalkash-2/split_lib_slice_3_apk.apk --oat-file=/data/dalvik-cache/arm64/data@app@com.example.root.yaalkash-2@split_lib_slice_3_apk.apk@classes .dex) because non-0 exit status 07-09 18:05:53.261 16686-16686/com.example.root.yaalkash W/art: Failed execv(/system/bin/dex2oat --runtime-arg -classpath --runtime-arg --instruction-set=arm64 --instruction-set-features=smp,a53 --runtime-arg -Xrelocate --boot-image=/system/framework/boot.art --runtime-arg -Xms64m --runtime-arg -Xmx512m --instruction-set-variant=cortex-a53 --instruction-set-features=default --dex-file=/data/app/com.example.root.yaalkash-2/split_lib_slice_4_apk.apk --oat-file=/data/dalvik-cache/arm64/data@app@com.example.root.yaalkash-2@split_lib_slice_4_apk.apk@classes .dex) because non-0 exit status 07-09 18:05:53.321 16686-16686/com.example.root.yaalkash W/art: Failed execv(/system/bin/dex2oat --runtime-arg -classpath --runtime-arg --instruction-set=arm64 --instruction-set-features=smp,a53 --runtime-arg -Xrelocate --boot-image=/system/framework/boot.art --runtime-arg -Xms64m --runtime-arg -Xmx512m --instruction-set-variant=cortex-a53 --instruction-set-features=default --dex-file=/data/app/com.example.root.yaalkash-2/split_lib_slice_5_apk.apk --oat-file=/data/dalvik-cache/arm64/data@app@com.example.root.yaalkash-2@split_lib_slice_5_apk.apk@classes .dex) because non-0 exit status 07-09 18:05:53.380 16686-16686/com.example.root.yaalkash W/art: Failed execv(/system/bin/dex2oat --runtime-arg -classpath --runtime-arg --instruction-set=arm64 --instruction-set-features=smp,a53 --runtime-arg -Xrelocate --boot-image=/system/framework/boot.art --runtime-arg -Xms64m --runtime-arg -Xmx512m --instruction-set-variant=cortex-a53 --instruction-set-features=default --dex-file=/data/app/com.example.root.yaalkash-2/split_lib_slice_6_apk.apk --oat-file=/data/dalvik-cache/arm64/data@app@com.example.root.yaalkash-2@split_lib_slice_6_apk.apk@classes .dex) because non-0 exit status 07-09 18:05:53.440 16686-16686/com.example.root.yaalkash W/art: Failed execv(/system/bin/dex2oat --runtime-arg -classpath --runtime-arg --instruction-set=arm64 --instruction-set-features=smp,a53 --runtime-arg -Xrelocate --boot-image=/system/framework/boot.art --runtime-arg -Xms64m --runtime-arg -Xmx512m --instruction-set-variant=cortex-a53 --instruction-set-features=default --dex-file=/data/app/com.example.root.yaalkash-2/split_lib_slice_7_apk.apk --oat-file=/data/dalvik-cache/arm64/data@app@com.example.root.yaalkash-2@split_lib_slice_7_apk.apk@classes .dex) because non-0 exit status 07-09 18:05:53.511 16686-16686/com.example.root.yaalkash W/art: Failed execv(/system/bin/dex2oat --runtime-arg -classpath --runtime-arg --instruction-set=arm64 --instruction-set-features=smp,a53 --runtime-arg -Xrelocate --boot-image=/system/framework/boot.art --runtime-arg -Xms64m --runtime-arg -Xmx512m --instruction-set-variant=cortex-a53 --instruction-set-features=default --dex-file=/data/app/com.example.root.yaalkash-2/split_lib_slice_8_apk.apk --oat-file=/data/dalvik-cache/arm64/data@app@com.example.root.yaalkash-2@split_lib_slice_8_apk.apk@classes .dex) because non-0 exit status 07-09 18:05:53.572 16686-16686/com.example.root.yaalkash W/art: Failed execv(/system/bin/dex2oat --runtime-arg -classpath --runtime-arg --instruction-set=arm64 --instruction-set-features=smp,a53 --runtime-arg -Xrelocate --boot-image=/system/framework/boot.art --runtime-arg -Xms64m --runtime-arg -Xmx512m --instruction-set-variant=cortex-a53 --instruction-set-features=default --dex-file=/data/app/com.example.root.yaalkash-2/split_lib_slice_9_apk.apk --oat-file=/data/dalvik-cache/arm64/data@app@com.example.root.yaalkash-2@split_lib_slice_9_apk.apk@classes .dex) because non-0 exit status 07-09 18:05:53.574 16686-16686/com.example.root.yaalkash W/System: ClassLoader referenced unknown path: /data/app/com.example.root.yaalkash-2/lib/arm64 07-09 18:05:53.581 16686-16686/com.example.root.yaalkash I/InstantRun: starting instant run server: is main process 07-09 18:05:53.686 16686-16686/com.example.root.yaalkash W/art: Before Android 4.1, method android.graphics.PorterDuffColorFil ter android.support.graphics.drawable.V ectorDrawableCompat.updateTintFilte r(android.graphics.PorterDuffColorF ilter, android.content.res.ColorStateList, android.graphics.PorterDuff$Mode) would have incorrectly overridden the package-private method in android.graphics.drawable.Drawable 07-09 18:05:53.726 16686-16686/com.example.root.yaalkash E/MultiWindowProxy: getServiceInstance failed! 07-09 18:06:04.839 16686-16695/com.example.root.yaalkash I/System: FinalizerDaemon: finalize objects = 1304 [/SPOILER] |
09.07.2017, 22:08 | #3 |
юзер как все
Участник клуба
Регистрация: 10.01.2012
Сообщений: 1,586
|
Вообще запрещено делать любые тяжелые вещи в основном потоке.
нужно писать или новый Thread и в не запускать или отключать через policy. Найдите проблемный кусок кода, через частичное его выключение комментариями. логи в java, не всегда показывают прямо на ошибку.
<Дзен - Вся вселенная в тебе > | Резюме: https://ch3ll0v3k.github.io/CV/
|
10.07.2017, 16:08 | #4 |
Новичок
Джуниор
Регистрация: 09.07.2017
Сообщений: 5
|
Все это дело запущено в отдельном потоке! Создавал чз наследование класа thread, приложение запускалось , но переменная json_object ничего не возвращала. Нужно из потока получить резултат в виде переменной json_object и работать с ней в главном потоке. При помощи обычного thread вернуть значение данной переменной невозможно . Вот и использую callable
|
11.07.2017, 02:59 | #5 |
юзер как все
Участник клуба
Регистрация: 10.01.2012
Сообщений: 1,586
|
Вот и хорошо
<Дзен - Вся вселенная в тебе > | Резюме: https://ch3ll0v3k.github.io/CV/
|
11.07.2017, 09:46 | #6 |
Новичок
Джуниор
Регистрация: 09.07.2017
Сообщений: 5
|
так вот именно что и так и так приложение не выполняет свою задачу
|
11.07.2017, 12:19 | #7 |
юзер как все
Участник клуба
Регистрация: 10.01.2012
Сообщений: 1,586
|
Давайте по порядку.
1. лучше иметь один класс а одном файле. 2. Имя класса начинается с большой буквы, имя файла полностью такое-же Как я писал уже ранее, ошибки выдаваемые компиляторов javac, иногда просто отстой. И туда навалено все в подряд. Сначала идут 3 WARNING. с сообщении о проблеме при монтировании разделов. Потом идет одна WARNING, про зависимости, потом еще 10-12 => W/art: Failed execv ..... Еще W/System: ClassLoader referenced unknown path: еще и еще И только потом идет ОШИБКА E/MultiWindowProxy: getServiceInstance failed! Но хрен его знает, так ли это. Закоментируйте весь код, который не относится к стандартному набоку базового активити. Если программа не откомпилируется после этого, то скорее всего у вас криво стоит среда и библиотеки. Какая ОС и версия ?
<Дзен - Вся вселенная в тебе > | Резюме: https://ch3ll0v3k.github.io/CV/
|
11.07.2017, 13:44 | #8 |
Новичок
Джуниор
Регистрация: 09.07.2017
Сообщений: 5
|
win 8.1 android studio 2.3.1
|
12.07.2017, 00:11 | #9 |
юзер как все
Участник клуба
Регистрация: 10.01.2012
Сообщений: 1,586
|
Откомпилировалась ?
<Дзен - Вся вселенная в тебе > | Резюме: https://ch3ll0v3k.github.io/CV/
|
Похожие темы | ||||
Тема | Автор | Раздел | Ответов | Последнее сообщение |
Не запускается приложение не из студии | igorbukur | C# (си шарп) | 3 | 19.02.2016 10:44 |
Не запускается консольное приложение (C++) | -Андрей- | Помощь студентам | 28 | 17.05.2014 13:15 |
GUI-приложение из Qt не запускается в Windows | talim | Qt и кроссплатформенное программирование С/С++ | 8 | 09.02.2013 13:08 |
не запускается приложение | panuta | БД в Delphi | 2 | 16.09.2011 14:42 |
Не запускается на других компах приложение. | evgenrpo | Общие вопросы C/C++ | 2 | 04.06.2009 00:36 |