Diskuze: Problém s AsyncTask
V předchozím kvízu, Online test znalostí Java, jsme si ověřili nabyté zkušenosti z kurzu.
Zobrazeno 5 zpráv z 5.
//= Settings::TRACKING_CODE_B ?> //= Settings::TRACKING_CODE ?>
V předchozím kvízu, Online test znalostí Java, jsme si ověřili nabyté zkušenosti z kurzu.
V kodu samotnem problem asi nebude. Neco se ti tam pousti asynchronne (v novem vlakne) uvnitr toho vlakna to padne na java.lang.UnsatisfiedLinkError coz je chyba, ktera se objevi pokud volas nejakou funkci z nativni knihovny (*.so na unixovych systemech, *.dll na vidlich) a knihovnu bud nenajde nebo knihovna danou funkci neobsahuje.
Reseni pro tvuj konkretni pripad ti bohuzel nedam, protoze v tom stacktracu chybi plny nazev tridy a metody. Nicmene kdyz zadas do googlu java.lang.UnsatisfiedLinkError: + cely nazev tridy a metody tak by jsi se mel dobrat reseni pomerne brzy.
Tu je výpis celej tej chyby priznávam nevyznám sa v nej
Caused by: java.lang.UnsatisfiedLinkError:
com.android.tools.fd.runtime.IncrementalClassLoader$DelegateClassLoader[DexPathList[[dex
file
"/data/data/com.example.m2msolutions.m2m2_demovoice/files/instant-run/dex/slice-support-annotations-25.1.1_d0502d127e98714274e324aa0addaee24e576c32-classes.dex",
dex file
"/data/data/com.example.m2msolutions.m2m2_demovoice/files/instant-run/dex/slice-slice9-classes.dex",
dex file
"/data/data/com.example.m2msolutions.m2m2_demovoice/files/instant-run/dex/slice-slice8-classes.dex",
dex file
"/data/data/com.example.m2msolutions.m2m2_demovoice/files/instant-run/dex/slice-slice7-classes.dex",
dex file
"/data/data/com.example.m2msolutions.m2m2_demovoice/files/instant-run/dex/slice-slice6-classes.dex",
dex file
"/data/data/com.example.m2msolutions.m2m2_demovoice/files/instant-run/dex/slice-slice5-classes.dex",
dex file
"/data/data/com.example.m2msolutions.m2m2_demovoice/files/instant-run/dex/slice-slice4-classes.dex",
dex file
"/data/data/com.example.m2msolutions.m2m2_demovoice/files/instant-run/dex/slice-slice3-classes.dex",
dex file
"/data/data/com.example.m2msolutions.m2m2_demovoice/files/instant-run/dex/slice-slice2-classes.dex",
dex file
"/data/data/com.example.m2msolutions.m2m2_demovoice/files/instant-run/dex/slice-slice1-classes.dex",
dex file
"/data/data/com.example.m2msolutions.m2m2_demovoice/files/instant-run/dex/slice-slice0-classes.dex",
dex file
"/data/data/com.example.m2msolutions.m2m2_demovoice/files/instant-run/dex/slice-jali-cmusphinx-5prealpha_dac57a132e7e91bab6871924951e0bff778c41f2-classes.dex",
dex file
"/data/data/com.example.m2msolutions.m2m2_demovoice/files/instant-run/dex/slice-com.android.support-support-vector-drawable-25.1.1_f14b4f244617150e3500c73d4a4c2074dabcf97f-classes.dex",
dex file
"/data/data/com.example.m2msolutions.m2m2_demovoice/files/instant-run/dex/slice-com.android.support-support-v4-25.1.1_ff396352ad8e64867ead56f0baccf803772ac3c2-classes.dex",
dex file
"/data/data/com.example.m2msolutions.m2m2_demovoice/files/instant-run/dex/slice-com.android.support-support-media-compat-25.1.1_685389bbdb5504e91fd96545931a4566f5bcf3f0-classes.dex",
dex file
"/data/data/com.example.m2msolutions.m2m2_demovoice/files/instant-run/dex/slice-com.android.support-support-fragment-25.1.1_7950a11b132f09b817e8b91f06c33117918a9d91-classes.dex",
dex file
"/data/data/com.example.m2msolutions.m2m2_demovoice/files/instant-run/dex/slice-com.android.support-support-core-utils-25.1.1_7d77b82874ae5201d9955bb28371cc9e1660c75e-classes.dex",
dex file
"/data/data/com.example.m2msolutions.m2m2_demovoice/files/instant-run/dex/slice-com.android.support-support-core-ui-25.1.1_df5103e08a22881cb3da10dd71efd85243c0e9cf-classes.dex",
dex file
"/data/data/com.example.m2msolutions.m2m2_demovoice/files/instant-run/dex/slice-com.android.support-support-compat-25.1.1_a138ab3eb67c953ccaa4b279b38fd3be8f2d583b-classes.dex",
dex file
"/data/data/com.example.m2msolutions.m2m2_demovoice/files/instant-run/dex/slice-com.android.support-appcompat-v7-25.1.1_56382f13254e09b00aeb9b67e66cfa34155222b2-classes.dex",
dex file
"/data/data/com.example.m2msolutions.m2m2_demovoice/files/instant-run/dex/slice-com.android.support-animated-vector-drawable-25.1.1_f1860e49daf88048fc34e93b9645fd5ea2235b57-classes.dex"],nativeLibraryDirectories=[/vendor/lib64,
/system/lib64, /vendor/lib64, /system/l
02-06 09:52:05.477 3930-3960/com.example.m2msolutions.m2m2_demovoice
I/Process: Sending signal. PID: 3930 SIG: 9
Skús vypnúť v nastaveniach Instant Run v Android Studiu. Mal by si to
nájsť tu
File → Settings → Build, Execution, Deployment → Instant
Run.
Zobrazeno 5 zpráv z 5.