Android编译预制过高版本app导致编译错误解决

Android ROM开发之预制GMS GMS 简介GMS 的全称是 Google Mobile Services (GMS) 。它是 Google 开发的一系列 apk集合,这些 apk 都或多或少的依赖 Google 服务。它没有包含在 Android 的开源代码中,当然也就不能看到这些 apk 的实现代码。在整机开发中,如果目标客户是国外用户,那么往往就需要预制GMS。如果你是Android应用开发人员,那么本篇内容可能不适合你。 阅读详情
AI摘要

在Android 7.0预制apk编译时出现错误,原因是基于高版本sdk开发的apk资源无法被低版本正确解析。解决办法有两种,一是在mk文件里禁止对该apk进行odex处理,二是让应用降低sdk版本与当前Android设备版本一致。

先上错误代码

No private recovery resources for TARGET_DEVICE rk3399_firefly_mipi_box
Starting build with ninja
ninja: Entering directory `.'
[ 50% 1/2] build out/target/product/rk3399_firefly_mipi_box/obj/APPS/VehicleRobot_intermediates/oat/arm/package.odex
FAILED: /bin/bash -c "(rm -f out/target/product/rk3399_firefly_mipi_box/obj/APPS/VehicleRobot_intermediates/oat/arm/package.odex ) && (mkdir -p out/target/product/rk3399_firefly_mipi_box/obj/APPS/VehicleRobot_intermediates/oat/arm/ ) && (ANDROID_LOG_TAGS=\"*:e\" out/host/linux-x86/bin/dex2oatd --runtime-arg -Xms64m --runtime-arg -Xmx512m --runtime-arg -classpath --runtime-arg \"&\" --boot-image=out/target/product/rk3399_firefly_mipi_box/dex_bootjars/system/framework/boot.art --dex-file=packages/apps/VehicleRobot/VehicleRobot.apk --dex-location=/system/app/VehicleRobot/VehicleRobot.apk --oat-file=out/target/product/rk3399_firefly_mipi_box/obj/APPS/VehicleRobot_intermediates/oat/arm/package.odex --android-root=out/target/product/rk3399_firefly_mipi_box/system --instruction-set=arm --instruction-set-variant=cortex-a15 --instruction-set-features=default --include-patch-information --runtime-arg -Xnorelocate --no-generate-debug-info --abort-on-hard-verifier-error --no-inline-from=core-oj.jar   --compile-pic )"
dex2oatd F  1760  1762 art/runtime/class_linker.cc:6620] Check failed: vtable_entry != other_entry && !name_comparator.HasSameNameAndSignature( other_entry->GetInterfaceMethodIfProxy(pointer_size)) vtable entries 1049 and 1054 are identical for java.lang.Class<android.support.v7.widget.MenuPopupWindow$MenuDropDownListView> in method int android.support.v7.widget.DropDownListView.lookForSelectablePosition(int, boolean) and int android.support.v7.widget.MenuPopupWindow$MenuDropDownListView.lookForSelectablePosition(int, boolean)
dex2oatd F 1760 1762 art/runtime/runtime.cc:422]Runtime aborting...
Aborting thread:
"Compiler driver thread pool worker thread 0" prio=5 tid=2 Runnable (still starting up)
  | group="" sCount=0 dsCount=0 obj=(nil) self=0x7fdde40008c0
  | sysTid=1762 nice=0 cgrp=default sched=0/0 handle=0x7fdde8907700
  | state=R schedstat=( 285833776 96819 28 ) utm=28 stm=0 core=0 HZ=100
  | stack=0x7fdde8807000-0x7fdde8809000 stackSize=1028KB
  | held mutexes= "abort lock" "mutator lock"(shared held)
  native: #00 pc 000000000051de9d  /home/blv/workdata/new_rk3399/test_rk3399/out/host/linux-x86/lib64/libartd.so (_ZN3art15DumpNativeStackERNSt3__113basic_ostreamIcNS0_11char_traitsIcEEEEiP12BacktraceMapPKcPNS_9ArtMethodEPv+253)
addr2line: Dwarf Error: Info pointer extends beyond end of attributes
  native:   art::DumpNativeStack(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, int, BacktraceMap*, char const*, art::ArtMethod*, void*)
  native:    /proc/self/cwd/art/runtime/utils.cc:1122 (discriminator 1)
  native: #01 pc 00000000004f6aa5  /home/blv/workdata/new_rk3399/test_rk3399/out/host/linux-x86/lib64/libartd.so (_ZNK3art6Thread9DumpStackERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEEbP12BacktraceMap+421)
addr2line: Dwarf Error: Info pointer extends beyond end of attributes
  native:   art::Thread::DumpStack(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, bool, BacktraceMap*) const
  native:    /proc/self/cwd/art/runtime/thread.cc:1532 (discriminator 1)
  native: #02 pc 00000000004e5e2a  /home/blv/workdata/new_rk3399/test_rk3399/out/host/linux-x86/lib64/libartd.so (_ZNK3art10AbortState10DumpThreadERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEEPNS_6ThreadE+90)
addr2line: Dwarf Error: Info pointer extends beyond end of attributes
  native:   art::AbortState::DumpThread(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, art::Thread*) const
  native:    /proc/self/cwd/art/runtime/runtime.cc:382
  native: #03 pc 00000000004e5cff  /home/blv/workdata/new_rk3399/test_rk3399/out/host/linux-x86/lib64/libartd.so (_ZNK3art10AbortState4DumpERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEE+207)
addr2line: Dwarf Error: Info pointer extends beyond end of attributes
  native:   art::AbortState::Dump(std::__1::basic_ostream<char, std::__1::char_traits<char> >&) const
  native:    /proc/self/cwd/art/runtime/runtime.cc:368
  native: #04 pc 00000000004d94d4  /home/blv/workdata/new_rk3399/test_rk3399/out/host/linux-x86/lib64/libartd.so (_ZN3art7Runtime5AbortEPKc+132)
addr2line: Dwarf Error: Info pointer extends beyond end of attributes
  native:   art::Dumpable<art::AbortState>::Dump(std::__1::basic_ostream<char, std::__1::char_traits<char> >&) const
  native:    /proc/self/cwd/art/runtime/base/dumpable.h:38
  native:   std::__1::basic_ostream<char, std::__1::char_traits<char> >& art::operator<< <art::AbortState>(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, art::Dumpable<art::AbortState> const&)
  native:    /proc/self/cwd/art/runtime/base/dumpable.h:49
  native:   art::Runtime::Abort(char const*)
  native:    /proc/self/cwd/art/runtime/runtime.cc:422
  native: #05 pc 000000000017b352  /home/blv/workdata/new_rk3399/test_rk3399/out/host/linux-x86/lib64/libartd.so (_ZN3art10LogMessageD1Ev+1330)
  native:   ~LogMessage
  native:    /proc/self/cwd/art/runtime/base/logging.cc:231 (discriminator 1)
  native: #06 pc 00000000001c6b6d  /home/blv/workdata/new_rk3399/test_rk3399/out/host/linux-x86/lib64/libartd.so (_ZN3art11ClassLinker20LinkInterfaceMethodsEPNS_6ThreadENS_6HandleINS_6mirror5ClassEEERKNSt3__113unordered_mapImNS0_17MethodTranslationENS7_4hashImEENS7_8equal_toImEENS7_9allocatorINS7_4pairIKmS9_EEEEEEPbPPNS_9ArtMethodE+20061)
  native:   art::CheckVTableHasNoDuplicates(art::Thread*, art::Handle<art::mirror::Class>, unsigned long)
  native:    /proc/self/cwd/art/runtime/class_linker.cc:6618 (discriminator 10)
  native:   art::SanityCheckVTable(art::Thread*, art::Handle<art::mirror::Class>, unsigned long)
  native:    /proc/self/cwd/art/runtime/class_linker.cc:6631 (discriminator 10)
  native:   art::ClassLinker::LinkInterfaceMethods(art::Thread*, art::Handle<art::mirror::Class>, std::__1::unordered_map<unsigned long, art::ClassLinker::MethodTranslation, std::__1::hash<unsigned long>, std::__1::equal_to<unsigned long>, std::__1::allocator<std::__1::pair<unsigned long const, art::ClassLinker::MethodTranslation> > > const&, bool*, art::ArtMethod**)
  native:    /proc/self/cwd/art/runtime/class_linker.cc:7264 (discriminator 10)
  native: #07 pc 00000000001bf2e7  /home/blv/workdata/new_rk3399/test_rk3399/out/host/linux-x86/lib64/libartd.so (_ZN3art11ClassLinker11LinkMethodsEPNS_6ThreadENS_6HandleINS_6mirror5ClassEEENS3_INS4_11ObjectArrayIS5_EEEEPbPPNS_9ArtMethodE+183)
  native:   art::ClassLinker::LinkMethods(art::Thread*, art::Handle<art::mirror::Class>, art::Handle<art::mirror::ObjectArray<art::mirror::Class> >, bool*, art::ArtMethod**)
  native:    /proc/self/cwd/art/runtime/class_linker.cc:5575 (discriminator 2)
  native: #08 pc 00000000001afc9d  /home/blv/workdata/new_rk3399/test_rk3399/out/host/linux-x86/lib64/libartd.so (_ZN3art11ClassLinker9LinkClassEPNS_6ThreadEPKcNS_6HandleINS_6mirror5ClassEEENS5_INS6_11ObjectArrayIS7_EEEEPNS_13MutableHandleIS7_EE+637)
  native:   art::ClassLinker::LinkClass(art::Thread*, char const*, art::Handle<art::mirror::Class>, art::Handle<art::mirror::ObjectArray<art::mirror::Class> >, art::MutableHandle<art::mirror::Class>*)
  native:    /proc/self/cwd/art/runtime/class_linker.cc:5118 (discriminator 2)
  native: #09 pc 00000000001ac0f9  /home/blv/workdata/new_rk3399/test_rk3399/out/host/linux-x86/lib64/libartd.so (_ZN3art11ClassLinker11DefineClassEPNS_6ThreadEPKcmNS_6HandleINS_6mirror11ClassLoaderEEERKNS_7DexFileERKNS9_8ClassDefE+777)
  native:   art::ClassLinker::DefineClass(art::Thread*, char const*, unsigned long, art::Handle<art::mirror::ClassLoader>, art::DexFile const&, art::DexFile::ClassDef const&)
  native:    /proc/self/cwd/art/runtime/class_linker.cc:2555 (discriminator 2)
  native: #10 pc 00000000001abc86  /home/blv/workdata/new_rk3399/test_rk3399/out/host/linux-x86/lib64/libartd.so (_ZN3art11ClassLinker26FindClassInPathClassLoaderERNS_33ScopedObjectAccessAlreadyRunnableEPNS_6ThreadEPKcmNS_6HandleINS_6mirror11ClassLoaderEEEPPNS8_5ClassE+1286)
  native:   art::ClassLinker::FindClassInPathClassLoader(art::ScopedObjectAccessAlreadyRunnable&, art::Thread*, char const*, unsigned long, art::Handle<art::mirror::ClassLoader>, art::mirror::Class**)
  native:    /proc/self/cwd/art/runtime/class_linker.cc:2334
  native: #11 pc 00000000001ac8f0  /home/blv/workdata/new_rk3399/test_rk3399/out/host/linux-x86/lib64/libartd.so (_ZN3art11ClassLinker9FindClassEPNS_6ThreadEPKcNS_6HandleINS_6mirror11ClassLoaderEEE+400)
  native:   art::ClassLinker::FindClass(art::Thread*, char const*, art::Handle<art::mirror::ClassLoader>)
  native:    /proc/self/cwd/art/runtime/class_linker.cc:2401 (discriminator 1)
  native: #12 pc 000000000019b6dc  /home/blv/workdata/new_rk3399/test_rk3399/out/host/linux-x86/lib64/libartd.so (_ZN3art11ClassLinker11ResolveTypeERKNS_7DexFileEtNS_6HandleINS_6mirror8DexCacheEEENS4_INS5_11ClassLoaderEEE+220)
  native:   art::ClassLinker::ResolveType(art::DexFile const&, unsigned short, art::Handle<art::mirror::DexCache>, art::Handle<art::mirror::ClassLoader>)
  native:    /proc/self/cwd/art/runtime/class_linker.cc:7578 (discriminator 1)
  native: #13 pc 00000000001af0ed  /home/blv/workdata/new_rk3399/test_rk3399/out/host/linux-x86/lib64/libartd-compiler.so (_ZN3art35ResolveClassFieldsAndMethodsVisitor5VisitEm+461)
  native:   art::ResolveClassFieldsAndMethodsVisitor::Visit(unsigned long)
  native:    /proc/self/cwd/art/compiler/driver/compiler_driver.cc:2062
  native: #14 pc 00000000001aeec9  /home/blv/workdata/new_rk3399/test_rk3399/out/host/linux-x86/lib64/libartd-compiler.so (_ZN3art26ParallelCompilationManager13ForAllClosure3RunEPNS_6ThreadE+25)
  native:   art::ParallelCompilationManager::ForAllClosure::Run(art::Thread*)
  native:    /proc/self/cwd/art/compiler/driver/compiler_driver.cc:1938
  native: #15 pc 000000000050c3eb  /home/blv/workdata/new_rk3399/test_rk3399/out/host/linux-x86/lib64/libartd.so (_ZN3art16ThreadPoolWorker3RunEv+91)
addr2line: Dwarf Error: Info pointer extends beyond end of attributes
  native:   art::ThreadPoolWorker::Run()
  native:    /proc/self/cwd/art/runtime/thread_pool.cc:79
  native: #16 pc 000000000050bf63  /home/blv/workdata/new_rk3399/test_rk3399/out/host/linux-x86/lib64/libartd.so (_ZN3art16ThreadPoolWorker8CallbackEPv+115)
addr2line: Dwarf Error: Info pointer extends beyond end of attributes
  native:   art::ThreadPoolWorker::Callback(void*)
  native:    /proc/self/cwd/art/runtime/thread_pool.cc:94
  native: #17 pc 00000000000076b9  /lib/x86_64-linux-gnu/libpthread-2.23.so (start_thread+201)
  native:   start_thread
  native:    ??:?
  native: #18 pc 000000000010741c  /lib/x86_64-linux-gnu/libc-2.23.so (clone+108)
  native:   clone
  native:    /build/glibc-Cl5G7W/glibc-2.23/misc/../sysdeps/unix/sysv/linux/x86_64/clone.S:109
  native: #19 pc 0000000000000000  ???
  (no managed stack frames)
Dumping all threads without appropriate locks held: thread list lock
All threads:
dex2oatd E  1760  1762 art/runtime/base/mutex-inl.h:92] Lock level violation: holding "abort lock" (level AbortLock - 5) while locking "thread list lock" (level ThreadListLock - 49)
DALVIK THREADS (4):
dex2oatd E  1760  1762 art/runtime/base/mutex-inl.h:92] Lock level violation: holding "abort lock" (level AbortLock - 5) while locking "thread list lock" (level ThreadListLock - 49)
addr2line: Dwarf Error: Info pointer extends beyond end of attributes
addr2line: Dwarf Error: Info pointer extends beyond end of attributes
addr2line: Dwarf Error: Info pointer extends beyond end of attributes
addr2line: Dwarf Error: Info pointer extends beyond end of attributes
addr2line: Dwarf Error: Info pointer extends beyond end of attributes
addr2line: Dwarf Error: Info pointer extends beyond end of attributes
addr2line: Dwarf Error: Info pointer extends beyond end of attributes
addr2line: Dwarf Error: Info pointer extends beyond end of attributes
"Compiler driver thread pool worker thread 0" prio=5 tid=2 Runnable (still starting up)
  | group="" sCount=0 dsCount=0 obj=(nil) self=0x7fdde40008c0
  | sysTid=1762 nice=0 cgrp=default sched=0/0 handle=0x7fdde8907700
  | state=R schedstat=( 299553986 413732 74 ) utm=28 stm=1 core=1 HZ=100
  | stack=0x7fdde8807000-0x7fdde8809000 stackSize=1028KB
  | held mutexes= "abort lock" "mutator lock"(shared held)
  native: #00 pc 000000000051de9d  /home/blv/workdata/new_rk3399/test_rk3399/out/host/linux-x86/lib64/libartd.so (_ZN3art15DumpNativeStackERNSt3__113basic_ostreamIcNS0_11char_traitsIcEEEEiP12BacktraceMapPKcPNS_9ArtMethodEPv+253)
  native:   art::DumpNativeStack(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, int, BacktraceMap*, char const*, art::ArtMethod*, void*)
  native:    /proc/self/cwd/art/runtime/utils.cc:1122 (discriminator 1)
  native: #01 pc 00000000004f6aa5  /home/blv/workdata/new_rk3399/test_rk3399/out/host/linux-x86/lib64/libartd.so (_ZNK3art6Thread9DumpStackERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEEbP12BacktraceMap+421)
  native:   art::Thread::DumpStack(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, bool, BacktraceMap*) const
  native:    /proc/self/cwd/art/runtime/thread.cc:1532 (discriminator 1)
  native: #02 pc 000000000050b794  /home/blv/workdata/new_rk3399/test_rk3399/out/host/linux-x86/lib64/libartd.so (_ZN3art14DumpCheckpoint3RunEPNS_6ThreadE+500)
  native:   art::DumpCheckpoint::Run(art::Thread*)
  native:    /proc/self/cwd/art/runtime/thread_list.cc:199 (discriminator 1)
  native: #03 pc 0000000000505010  /home/blv/workdata/new_rk3399/test_rk3399/out/host/linux-x86/lib64/libartd.so (_ZN3art10ThreadList13RunCheckpointEPNS_7ClosureE+400)
  native:   art::ThreadList::RunCheckpoint(art::Closure*)
  native:    /proc/self/cwd/art/runtime/thread_list.cc:323
  native: #04 pc 0000000000504c7a  /home/blv/workdata/new_rk3399/test_rk3399/out/host/linux-x86/lib64/libartd.so (_ZN3art10ThreadList4DumpERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEEb+394)
  native:   art::ThreadList::Dump(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, bool)
  native:    /proc/self/cwd/art/runtime/thread_list.cc:242
  native: #05 pc 00000000004d94d4  /home/blv/workdata/new_rk3399/test_rk3399/out/host/linux-x86/lib64/libartd.so (_ZN3art7Runtime5AbortEPKc+132)
  native:   art::Dumpable<art::AbortState>::Dump(std::__1::basic_ostream<char, std::__1::char_traits<char> >&) const
  native:    /proc/self/cwd/art/runtime/base/dumpable.h:38
  native:   std::__1::basic_ostream<char, std::__1::char_traits<char> >& art::operator<< <art::AbortState>(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, art::Dumpable<art::AbortState> const&)
  native:    /proc/self/cwd/art/runtime/base/dumpable.h:49
  native:   art::Runtime::Abort(char const*)
  native:    /proc/self/cwd/art/runtime/runtime.cc:422
  native: #06 pc 000000000017b352  /home/blv/workdata/new_rk3399/test_rk3399/out/host/linux-x86/lib64/libartd.so (_ZN3art10LogMessageD1Ev+1330)
  native:   ~LogMessage
  native:    /proc/self/cwd/art/runtime/base/logging.cc:231 (discriminator 1)
  native: #07 pc 00000000001c6b6d  /home/blv/workdata/new_rk3399/test_rk3399/out/host/linux-x86/lib64/libartd.so (_ZN3art11ClassLinker20LinkInterfaceMethodsEPNS_6ThreadENS_6HandleINS_6mirror5ClassEEERKNSt3__113unordered_mapImNS0_17MethodTranslationENS7_4hashImEENS7_8equal_toImEENS7_9allocatorINS7_4pairIKmS9_EEEEEEPbPPNS_9ArtMethodE+20061)
  native:   art::CheckVTableHasNoDuplicates(art::Thread*, art::Handle<art::mirror::Class>, unsigned long)
  native:    /proc/self/cwd/art/runtime/class_linker.cc:6618 (discriminator 10)
  native:   art::SanityCheckVTable(art::Thread*, art::Handle<art::mirror::Class>, unsigned long)
  native:    /proc/self/cwd/art/runtime/class_linker.cc:6631 (discriminator 10)
  native:   art::ClassLinker::LinkInterfaceMethods(art::Thread*, art::Handle<art::mirror::Class>, std::__1::unordered_map<unsigned long, art::ClassLinker::MethodTranslation, std::__1::hash<unsigned long>, std::__1::equal_to<unsigned long>, std::__1::allocator<std::__1::pair<unsigned long const, art::ClassLinker::MethodTranslation> > > const&, bool*, art::ArtMethod**)
  native:    /proc/self/cwd/art/runtime/class_linker.cc:7264 (discriminator 10)
  native: #08 pc 00000000001bf2e7  /home/blv/workdata/new_rk3399/test_rk3399/out/host/linux-x86/lib64/libartd.so (_ZN3art11ClassLinker11LinkMethodsEPNS_6ThreadENS_6HandleINS_6mirror5ClassEEENS3_INS4_11ObjectArrayIS5_EEEEPbPPNS_9ArtMethodE+183)
  native:   art::ClassLinker::LinkMethods(art::Thread*, art::Handle<art::mirror::Class>, art::Handle<art::mirror::ObjectArray<art::mirror::Class> >, bool*, art::ArtMethod**)
  native:    /proc/self/cwd/art/runtime/class_linker.cc:5575 (discriminator 2)
  native: #09 pc 00000000001afc9d  /home/blv/workdata/new_rk3399/test_rk3399/out/host/linux-x86/lib64/libartd.so (_ZN3art11ClassLinker9LinkClassEPNS_6ThreadEPKcNS_6HandleINS_6mirror5ClassEEENS5_INS6_11ObjectArrayIS7_EEEEPNS_13MutableHandleIS7_EE+637)
  native:   art::ClassLinker::LinkClass(art::Thread*, char const*, art::Handle<art::mirror::Class>, art::Handle<art::mirror::ObjectArray<art::mirror::Class> >, art::MutableHandle<art::mirror::Class>*)
  native:    /proc/self/cwd/art/runtime/class_linker.cc:5118 (discriminator 2)
  native: #10 pc 00000000001ac0f9  /home/blv/workdata/new_rk3399/test_rk3399/out/host/linux-x86/lib64/libartd.so (_ZN3art11ClassLinker11DefineClassEPNS_6ThreadEPKcmNS_6HandleINS_6mirror11ClassLoaderEEERKNS_7DexFileERKNS9_8ClassDefE+777)
  native:   art::ClassLinker::DefineClass(art::Thread*, char const*, unsigned long, art::Handle<art::mirror::ClassLoader>, art::DexFile const&, art::DexFile::ClassDef const&)
  native:    /proc/self/cwd/art/runtime/class_linker.cc:2555 (discriminator 2)
  native: #11 pc 00000000001abc86  /home/blv/workdata/new_rk3399/test_rk3399/out/host/linux-x86/lib64/libartd.so (_ZN3art11ClassLinker26FindClassInPathClassLoaderERNS_33ScopedObjectAccessAlreadyRunnableEPNS_6ThreadEPKcmNS_6HandleINS_6mirror11ClassLoaderEEEPPNS8_5ClassE+1286)
  native:   art::ClassLinker::FindClassInPathClassLoader(art::ScopedObjectAccessAlreadyRunnable&, art::Thread*, char const*, unsigned long, art::Handle<art::mirror::ClassLoader>, art::mirror::Class**)
  native:    /proc/self/cwd/art/runtime/class_linker.cc:2334
  native: #12 pc 00000000001ac8f0  /home/blv/workdata/new_rk3399/test_rk3399/out/host/linux-x86/lib64/libartd.so (_ZN3art11ClassLinker9FindClassEPNS_6ThreadEPKcNS_6HandleINS_6mirror11ClassLoaderEEE+400)
  native:   art::ClassLinker::FindClass(art::Thread*, char const*, art::Handle<art::mirror::ClassLoader>)
  native:    /proc/self/cwd/art/runtime/class_linker.cc:2401 (discriminator 1)
  native: #13 pc 000000000019b6dc  /home/blv/workdata/new_rk3399/test_rk3399/out/host/linux-x86/lib64/libartd.so (_ZN3art11ClassLinker11ResolveTypeERKNS_7DexFileEtNS_6HandleINS_6mirror8DexCacheEEENS4_INS5_11ClassLoaderEEE+220)
  native:   art::ClassLinker::ResolveType(art::DexFile const&, unsigned short, art::Handle<art::mirror::DexCache>, art::Handle<art::mirror::ClassLoader>)
  native:    /proc/self/cwd/art/runtime/class_linker.cc:7578 (discriminator 1)
  native: #14 pc 00000000001af0ed  /home/blv/workdata/new_rk3399/test_rk3399/out/host/linux-x86/lib64/libartd-compiler.so (_ZN3art35ResolveClassFieldsAndMethodsVisitor5VisitEm+461)
  native:   art::ResolveClassFieldsAndMethodsVisitor::Visit(unsigned long)
  native:    /proc/self/cwd/art/compiler/driver/compiler_driver.cc:2062
  native: #15 pc 00000000001aeec9  /home/blv/workdata/new_rk3399/test_rk3399/out/host/linux-x86/lib64/libartd-compiler.so (_ZN3art26ParallelCompilationManager13ForAllClosure3RunEPNS_6ThreadE+25)
  native:   art::ParallelCompilationManager::ForAllClosure::Run(art::Thread*)
  native:    /proc/self/cwd/art/compiler/driver/compiler_driver.cc:1938
  native: #16 pc 000000000050c3eb  /home/blv/workdata/new_rk3399/test_rk3399/out/host/linux-x86/lib64/libartd.so (_ZN3art16ThreadPoolWorker3RunEv+91)
  native:   art::ThreadPoolWorker::Run()
  native:    /proc/self/cwd/art/runtime/thread_pool.cc:79
  native: #17 pc 000000000050bf63  /home/blv/workdata/new_rk3399/test_rk3399/out/host/linux-x86/lib64/libartd.so (_ZN3art16ThreadPoolWorker8CallbackEPv+115)
  native:   art::ThreadPoolWorker::Callback(void*)
  native:    /proc/self/cwd/art/runtime/thread_pool.cc:94
  native: #18 pc 00000000000076b9  /lib/x86_64-linux-gnu/libpthread-2.23.so (start_thread+201)
  native:   start_thread
  native:    ??:?
  native: #19 pc 000000000010741c  /lib/x86_64-linux-gnu/libc-2.23.so (clone+108)
  native:   clone
  native:    /build/glibc-Cl5G7W/glibc-2.23/misc/../sysdeps/unix/sysv/linux/x86_64/clone.S:109
  native: #20 pc 0000000000000000  ???
  (no managed stack frames)

addr2line: Dwarf Error: Info pointer extends beyond end of attributes
"main" prio=5 tid=1 Native (still starting up)
  | group="" sCount=1 dsCount=0 obj=(nil) self=0x5556841ae210
  | sysTid=1760 nice=0 cgrp=default sched=0/0 handle=0x7fddef9af740
  | state=S schedstat=( 1194845937 1043157 82 ) utm=117 stm=1 core=3 HZ=100
  | stack=0x7ffff1657000-0x7ffff1659000 stackSize=7MB
  | held mutexes=
  kernel: (couldn't read /proc/self/task/1760/stack)
  native: #00 pc 00000000001014d7  /lib/x86_64-linux-gnu/libc-2.23.so (syscall+23)
  native:   syscall
  native:    /build/glibc-Cl5G7W/glibc-2.23/misc/../sysdeps/unix/sysv/linux/x86_64/syscall.S:37
  native: #01 pc 000000000017ea5f  /home/blv/workdata/new_rk3399/test_rk3399/out/host/linux-x86/lib64/libartd.so (_ZN3art17ConditionVariable16WaitHoldingLocksEPNS_6ThreadE+175)
  native:   art::futex(int volatile*, int, int, timespec const*, int volatile*, int)
  native:    /proc/self/cwd/art/runtime/base/mutex-inl.h:45
  native:   art::ConditionVariable::WaitHoldingLocks(art::Thread*)
  native:    /proc/self/cwd/art/runtime/base/mutex.cc:848
  native: #02 pc 000000000050d044  /home/blv/workdata/new_rk3399/test_rk3399/out/host/linux-x86/lib64/libartd.so (_ZN3art10ThreadPool4WaitEPNS_6ThreadEbb+308)
  native:   art::ThreadPool::Wait(art::Thread*, bool, bool)
  native:    /proc/self/cwd/art/runtime/thread_pool.cc:230
  native: #03 pc 00000000001a7814  /home/blv/workdata/new_rk3399/test_rk3399/out/host/linux-x86/lib64/libartd-compiler.so (_ZN3art26ParallelCompilationManager6ForAllEmmPNS_18CompilationVisitorEm+260)
  native:   art::ParallelCompilationManager::ForAll(unsigned long, unsigned long, art::CompilationVisitor*, unsigned long)
  native:    /proc/self/cwd/art/compiler/driver/compiler_driver.cc:1914
  native: #04 pc 000000000019dd30  /home/blv/workdata/new_rk3399/test_rk3399/out/host/linux-x86/lib64/libartd-compiler.so (_ZN3art14CompilerDriver14ResolveDexFileEP8_jobjectRKNS_7DexFileERKNSt3__16vectorIPS4_NS6_9allocatorIS8_EEEEPNS_10ThreadPoolEmPNS_12TimingLoggerE+224)
  native:   art::CompilerDriver::ResolveDexFile(_jobject*, art::DexFile const&, std::__1::vector<art::DexFile const*, std::__1::allocator<art::DexFile const*> > const&, art::ThreadPool*, unsigned long, art::TimingLogger*)
  native:    /proc/self/cwd/art/compiler/driver/compiler_driver.cc:2200 (discriminator 1)
  native: #05 pc 000000000019dc09  /home/blv/workdata/new_rk3399/test_rk3399/out/host/linux-x86/lib64/libartd-compiler.so (_ZN3art14CompilerDriver7ResolveEP8_jobjectRKNSt3__16vectorIPKNS_7DexFileENS3_9allocatorIS7_EEEEPNS_12TimingLoggerE+249)
  native:   art::CompilerDriver::Resolve(_jobject*, std::__1::vector<art::DexFile const*, std::__1::allocator<art::DexFile const*> > const&, art::TimingLogger*)
  native:    /proc/self/cwd/art/compiler/driver/compiler_driver.cc:770
  native: #06 pc 000000000019b7df  /home/blv/workdata/new_rk3399/test_rk3399/out/host/linux-x86/lib64/libartd-compiler.so (_ZN3art14CompilerDriver10PreCompileEP8_jobjectRKNSt3__16vectorIPKNS_7DexFileENS3_9allocatorIS7_EEEEPNS_12TimingLoggerE+159)
  native:   art::CompilerDriver::PreCompile(_jobject*, std::__1::vector<art::DexFile const*, std::__1::allocator<art::DexFile const*> > const&, art::TimingLogger*)
  native:    /proc/self/cwd/art/compiler/driver/compiler_driver.cc:904
  native: #07 pc 000000000019b04a  /home/blv/workdata/new_rk3399/test_rk3399/out/host/linux-x86/lib64/libartd-compiler.so (_ZN3art14CompilerDriver10CompileAllEP8_jobjectRKNSt3__16vectorIPKNS_7DexFileENS3_9allocatorIS7_EEEEPNS_12TimingLoggerE+106)
  native:   art::CompilerDriver::CompileAll(_jobject*, std::__1::vector<art::DexFile const*, std::__1::allocator<art::DexFile const*> > const&, art::TimingLogger*)
  native:    /proc/self/cwd/art/compiler/driver/compiler_driver.cc:482
  native: #08 pc 0000000000024fec  /home/blv/workdata/new_rk3399/test_rk3399/out/host/linux-x86/bin/dex2oatd (_ZN3art7Dex2Oat7CompileEv+2076)
  native:   art::Dex2Oat::Compile()
  native:    /proc/self/cwd/art/dex2oat/dex2oat.cc:1583 (discriminator 1)
  native: #09 pc 000000000000db9f  /home/blv/workdata/new_rk3399/test_rk3399/out/host/linux-x86/bin/dex2oatd (main+815)
  native:   art::CompileApp(art::Dex2Oat&)
  native:    /proc/self/cwd/art/dex2oat/dex2oat.cc:2588
  native:   art::dex2oat(int, char**)
  native:    /proc/self/cwd/art/dex2oat/dex2oat.cc:2672
  native:   main
  native:    /proc/self/cwd/art/dex2oat/dex2oat.cc:2681
  native: #10 pc 000000000002082f  /lib/x86_64-linux-gnu/libc-2.23.so (__libc_start_main+239)
  native:   __libc_start_main
  native:    /build/glibc-Cl5G7W/glibc-2.23/csu/../csu/libc-start.c:291
  native: #11 pc 000000000000d748  /home/blv/workdata/new_rk3399/test_rk3399/out/host/linux-x86/bin/dex2oatd (???)
  (no managed stack frames)

addr2line: Dwarf Error: Info pointer extends beyond end of attributes
addr2line: Dwarf Error: Info pointer extends beyond end of attributes
addr2line: Dwarf Error: Info pointer extends beyond end of attributes
"Compiler driver thread pool worker thread 2" prio=5 tid=3 Native (still starting up)
  | group="" sCount=1 dsCount=0 obj=(nil) self=0x7fdddc0008c0
  | sysTid=1764 nice=0 cgrp=default sched=0/0 handle=0x7fdde8705700
  | state=S schedstat=( 350094154 163891 57 ) utm=35 stm=0 core=2 HZ=100
  | stack=0x7fdde8605000-0x7fdde8607000 stackSize=1028KB
  | held mutexes=
  kernel: (couldn't read /proc/self/task/1764/stack)
  native: #00 pc 00000000001014d7  /lib/x86_64-linux-gnu/libc-2.23.so (syscall+23)
  native:   syscall
  native:    /build/glibc-Cl5G7W/glibc-2.23/misc/../sysdeps/unix/sysv/linux/x86_64/syscall.S:37
  native: #01 pc 000000000017ea5f  /home/blv/workdata/new_rk3399/test_rk3399/out/host/linux-x86/lib64/libartd.so (_ZN3art17ConditionVariable16WaitHoldingLocksEPNS_6ThreadE+175)
  native:   art::futex(int volatile*, int, int, timespec const*, int volatile*, int)
  native:    /proc/self/cwd/art/runtime/base/mutex-inl.h:45
  native:   art::ConditionVariable::WaitHoldingLocks(art::Thread*)
  native:    /proc/self/cwd/art/runtime/base/mutex.cc:848
  native: #02 pc 000000000050cd8a  /home/blv/workdata/new_rk3399/test_rk3399/out/host/linux-x86/lib64/libartd.so (_ZN3art10ThreadPool7GetTaskEPNS_6ThreadE+298)
  native:   art::ThreadPool::GetTask(art::Thread*)
  native:    /proc/self/cwd/art/runtime/thread_pool.cc:191
  native: #03 pc 000000000050c401  /home/blv/workdata/new_rk3399/test_rk3399/out/host/linux-x86/lib64/libartd.so (_ZN3art16ThreadPoolWorker3RunEv+113)
  native:   art::ThreadPoolWorker::Run()
  native:    /proc/self/cwd/art/runtime/thread_pool.cc:78 (discriminator 1)
  native: #04 pc 000000000050bf63  /home/blv/workdata/new_rk3399/test_rk3399/out/host/linux-x86/lib64/libartd.so (_ZN3art16ThreadPoolWorker8CallbackEPv+115)
  native:   art::ThreadPoolWorker::Callback(void*)
  native:    /proc/self/cwd/art/runtime/thread_pool.cc:94
  native: #05 pc 00000000000076b9  /lib/x86_64-linux-gnu/libpthread-2.23.so (start_thread+201)
  native:   start_thread
  native:    ??:?
  native: #06 pc 000000000010741c  /lib/x86_64-linux-gnu/libc-2.23.so (clone+108)
  native:   clone
  native:    /build/glibc-Cl5G7W/glibc-2.23/misc/../sysdeps/unix/sysv/linux/x86_64/clone.S:109
  native: #07 pc 0000000000000000  ???
  (no managed stack frames)

addr2line: Dwarf Error: Info pointer extends beyond end of attributes
addr2line: Dwarf Error: Info pointer extends beyond end of attributes
addr2line: Dwarf Error: Info pointer extends beyond end of attributes
"Compiler driver thread pool worker thread 1" prio=5 tid=4 Native (still starting up)
  | group="" sCount=1 dsCount=0 obj=(nil) self=0x7fdde00008c0
  | sysTid=1763 nice=0 cgrp=default sched=0/0 handle=0x7fdde8806700
  | state=S schedstat=( 350039778 32419 45 ) utm=34 stm=0 core=1 HZ=100
  | stack=0x7fdde8706000-0x7fdde8708000 stackSize=1028KB
  | held mutexes=
  kernel: (couldn't read /proc/self/task/1763/stack)
  native: #00 pc 00000000001014d7  /lib/x86_64-linux-gnu/libc-2.23.so (syscall+23)
  native:   syscall
  native:    /build/glibc-Cl5G7W/glibc-2.23/misc/../sysdeps/unix/sysv/linux/x86_64/syscall.S:37
  native: #01 pc 000000000017ea5f  /home/blv/workdata/new_rk3399/test_rk3399/out/host/linux-x86/lib64/libartd.so (_ZN3art17ConditionVariable16WaitHoldingLocksEPNS_6ThreadE+175)
  native:   art::futex(int volatile*, int, int, timespec const*, int volatile*, int)
  native:    /proc/self/cwd/art/runtime/base/mutex-inl.h:45
  native:   art::ConditionVariable::WaitHoldingLocks(art::Thread*)
  native:    /proc/self/cwd/art/runtime/base/mutex.cc:848
  native: #02 pc 000000000050cd8a  /home/blv/workdata/new_rk3399/test_rk3399/out/host/linux-x86/lib64/libartd.so (_ZN3art10ThreadPool7GetTaskEPNS_6ThreadE+298)
  native:   art::ThreadPool::GetTask(art::Thread*)
  native:    /proc/self/cwd/art/runtime/thread_pool.cc:191
  native: #03 pc 000000000050c401  /home/blv/workdata/new_rk3399/test_rk3399/out/host/linux-x86/lib64/libartd.so (_ZN3art16ThreadPoolWorker3RunEv+113)
  native:   art::ThreadPoolWorker::Run()
  native:    /proc/self/cwd/art/runtime/thread_pool.cc:78 (discriminator 1)
  native: #04 pc 000000000050bf63  /home/blv/workdata/new_rk3399/test_rk3399/out/host/linux-x86/lib64/libartd.so (_ZN3art16ThreadPoolWorker8CallbackEPv+115)
  native:   art::ThreadPoolWorker::Callback(void*)
  native:    /proc/self/cwd/art/runtime/thread_pool.cc:94
  native: #05 pc 00000000000076b9  /lib/x86_64-linux-gnu/libpthread-2.23.so (start_thread+201)
  native:   start_thread
  native:    ??:?
  native: #06 pc 000000000010741c  /lib/x86_64-linux-gnu/libc-2.23.so (clone+108)
  native:   clone
  native:    /build/glibc-Cl5G7W/glibc-2.23/misc/../sysdeps/unix/sysv/linux/x86_64/clone.S:109
  native: #07 pc 0000000000000000  ???
  (no managed stack frames)

dex2oatd E  1760  1762 art/runtime/thread-inl.h:108] holding "abort lock" at point where thread suspension is expected
dex2oatd E  1760  1762 art/runtime/base/mutex-inl.h:92] Lock level violation: holding "abort lock" (level AbortLock - 5) while locking "mutator lock" (level MutatorLock - 60)
dex2oatd F 1760 1762 art/runtime/runtime_linux.cc:336]*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
Fatal signal 6 (SIGABRT), code -6 (SI_TKILL)
OS: Linux 4.15.0-47-generic (x86_64)
Cmdline: out/host/linux-x86/bin/dex2oatd --runtime-arg -Xms64m --runtime-arg -Xmx512m --runtime-arg -classpath --runtime-arg & --boot-image=out/target/product/rk3399_firefly_mipi_box/dex_bootjars/system/framework/boot.art --dex-file=packages/apps/VehicleRobot/VehicleRobot.apk --dex-location=/system/app/VehicleRobot/VehicleRobot.apk --oat-file=out/target/product/rk3399_firefly_mipi_box/obj/APPS/VehicleRobot_intermediates/oat/arm/package.odex --android-root=out/target/product/rk3399_firefly_mipi_box/system --instruction-set=arm --instruction-set-variant=cortex-a15 --instruction-set-features=default --include-patch-information --runtime-arg -Xnorelocate --no-generate-debug-info --abort-on-hard-verifier-error --no-inline-from=core-oj.jar --compile-pic
Thread: 1762 "Compiler driver"
Registers:
    rax: 0x0000000000000000    rbx: 0x00000000000006e0    rcx: 0x00007fddee1a44d9    rdx: 0x0000000000000006
    rdi: 0x00000000000006e0    rsi: 0x00000000000006e2    rbp: 0x00007fdde8905af0    rsp: 0x00007fdde8905aa8
    r8 : 0x0000555682325310    r9 : 0x0000555682325310    r10: 0x0000000000000001    r11: 0x0000000000000246
    r12: 0x000055568418e0c1    r13: 0x00007fdde89061e0    r14: 0x00007fdde400dfb0    r15: 0x00000000000006e0
    rip: 0x00007fddee1a44d9    eflags: 0x00000246 [ PF ZF IF ]
     cs: 0x00000033     gs: 0x00000000     fs: 0x00000000

Backtrace:
        #00 pc 00000000001014d9  /lib/x86_64-linux-gnu/libc-2.23.so (syscall+25)
          syscall
           /build/glibc-Cl5G7W/glibc-2.23/misc/../sysdeps/unix/sysv/linux/x86_64/syscall.S:38
        #01 pc 00000000004d9618  /home/blv/workdata/new_rk3399/test_rk3399/out/host/linux-x86/lib64/libartd.so (_ZN3art7Runtime5AbortEPKc+456)
addr2line: Dwarf Error: Info pointer extends beyond end of attributes
          art::Runtime::Abort(char const*)
           /proc/self/cwd/art/runtime/runtime.cc:444 (discriminator 2)
        #02 pc 000000000017b352  /home/blv/workdata/new_rk3399/test_rk3399/out/host/linux-x86/lib64/libartd.so (_ZN3art10LogMessageD1Ev+1330)
          ~LogMessage
           /proc/self/cwd/art/runtime/base/logging.cc:231 (discriminator 1)
        #03 pc 00000000001c6b6d  /home/blv/workdata/new_rk3399/test_rk3399/out/host/linux-x86/lib64/libartd.so (_ZN3art11ClassLinker20LinkInterfaceMethodsEPNS_6ThreadENS_6HandleINS_6mirror5ClassEEERKNSt3__113unordered_mapImNS0_17MethodTranslationENS7_4hashImEENS7_8equal_toImEENS7_9allocatorINS7_4pairIKmS9_EEEEEEPbPPNS_9ArtMethodE+20061)
          art::CheckVTableHasNoDuplicates(art::Thread*, art::Handle<art::mirror::Class>, unsigned long)
           /proc/self/cwd/art/runtime/class_linker.cc:6618 (discriminator 10)
          art::SanityCheckVTable(art::Thread*, art::Handle<art::mirror::Class>, unsigned long)
           /proc/self/cwd/art/runtime/class_linker.cc:6631 (discriminator 10)
          art::ClassLinker::LinkInterfaceMethods(art::Thread*, art::Handle<art::mirror::Class>, std::__1::unordered_map<unsigned long, art::ClassLinker::MethodTranslation, std::__1::hash<unsigned long>, std::__1::equal_to<unsigned long>, std::__1::allocator<std::__1::pair<unsigned long const, art::ClassLinker::MethodTranslation> > > const&, bool*, art::ArtMethod**)
           /proc/self/cwd/art/runtime/class_linker.cc:7264 (discriminator 10)
        #04 pc 00000000001bf2e7  /home/blv/workdata/new_rk3399/test_rk3399/out/host/linux-x86/lib64/libartd.so (_ZN3art11ClassLinker11LinkMethodsEPNS_6ThreadENS_6HandleINS_6mirror5ClassEEENS3_INS4_11ObjectArrayIS5_EEEEPbPPNS_9ArtMethodE+183)
          art::ClassLinker::LinkMethods(art::Thread*, art::Handle<art::mirror::Class>, art::Handle<art::mirror::ObjectArray<art::mirror::Class> >, bool*, art::ArtMethod**)
           /proc/self/cwd/art/runtime/class_linker.cc:5575 (discriminator 2)
        #05 pc 00000000001afc9d  /home/blv/workdata/new_rk3399/test_rk3399/out/host/linux-x86/lib64/libartd.so (_ZN3art11ClassLinker9LinkClassEPNS_6ThreadEPKcNS_6HandleINS_6mirror5ClassEEENS5_INS6_11ObjectArrayIS7_EEEEPNS_13MutableHandleIS7_EE+637)
          art::ClassLinker::LinkClass(art::Thread*, char const*, art::Handle<art::mirror::Class>, art::Handle<art::mirror::ObjectArray<art::mirror::Class> >, art::MutableHandle<art::mirror::Class>*)
           /proc/self/cwd/art/runtime/class_linker.cc:5118 (discriminator 2)
        #06 pc 00000000001ac0f9  /home/blv/workdata/new_rk3399/test_rk3399/out/host/linux-x86/lib64/libartd.so (_ZN3art11ClassLinker11DefineClassEPNS_6ThreadEPKcmNS_6HandleINS_6mirror11ClassLoaderEEERKNS_7DexFileERKNS9_8ClassDefE+777)
          art::ClassLinker::DefineClass(art::Thread*, char const*, unsigned long, art::Handle<art::mirror::ClassLoader>, art::DexFile const&, art::DexFile::ClassDef const&)
           /proc/self/cwd/art/runtime/class_linker.cc:2555 (discriminator 2)
        #07 pc 00000000001abc86  /home/blv/workdata/new_rk3399/test_rk3399/out/host/linux-x86/lib64/libartd.so (_ZN3art11ClassLinker26FindClassInPathClassLoaderERNS_33ScopedObjectAccessAlreadyRunnableEPNS_6ThreadEPKcmNS_6HandleINS_6mirror11ClassLoaderEEEPPNS8_5ClassE+1286)
          art::ClassLinker::FindClassInPathClassLoader(art::ScopedObjectAccessAlreadyRunnable&, art::Thread*, char const*, unsigned long, art::Handle<art::mirror::ClassLoader>, art::mirror::Class**)
           /proc/self/cwd/art/runtime/class_linker.cc:2334
        #08 pc 00000000001ac8f0  /home/blv/workdata/new_rk3399/test_rk3399/out/host/linux-x86/lib64/libartd.so (_ZN3art11ClassLinker9FindClassEPNS_6ThreadEPKcNS_6HandleINS_6mirror11ClassLoaderEEE+400)
          art::ClassLinker::FindClass(art::Thread*, char const*, art::Handle<art::mirror::ClassLoader>)
           /proc/self/cwd/art/runtime/class_linker.cc:2401 (discriminator 1)
        #09 pc 000000000019b6dc  /home/blv/workdata/new_rk3399/test_rk3399/out/host/linux-x86/lib64/libartd.so (_ZN3art11ClassLinker11ResolveTypeERKNS_7DexFileEtNS_6HandleINS_6mirror8DexCacheEEENS4_INS5_11ClassLoaderEEE+220)
          art::ClassLinker::ResolveType(art::DexFile const&, unsigned short, art::Handle<art::mirror::DexCache>, art::Handle<art::mirror::ClassLoader>)
           /proc/self/cwd/art/runtime/class_linker.cc:7578 (discriminator 1)
        #10 pc 00000000001af0ed  /home/blv/workdata/new_rk3399/test_rk3399/out/host/linux-x86/lib64/libartd-compiler.so (_ZN3art35ResolveClassFieldsAndMethodsVisitor5VisitEm+461)
          art::ResolveClassFieldsAndMethodsVisitor::Visit(unsigned long)
           /proc/self/cwd/art/compiler/driver/compiler_driver.cc:2062
        #11 pc 00000000001aeec9  /home/blv/workdata/new_rk3399/test_rk3399/out/host/linux-x86/lib64/libartd-compiler.so (_ZN3art26ParallelCompilationManager13ForAllClosure3RunEPNS_6ThreadE+25)
          art::ParallelCompilationManager::ForAllClosure::Run(art::Thread*)
           /proc/self/cwd/art/compiler/driver/compiler_driver.cc:1938
        #12 pc 000000000050c3eb  /home/blv/workdata/new_rk3399/test_rk3399/out/host/linux-x86/lib64/libartd.so (_ZN3art16ThreadPoolWorker3RunEv+91)
addr2line: Dwarf Error: Info pointer extends beyond end of attributes
          art::ThreadPoolWorker::Run()
           /proc/self/cwd/art/runtime/thread_pool.cc:79
        #13 pc 000000000050bf63  /home/blv/workdata/new_rk3399/test_rk3399/out/host/linux-x86/lib64/libartd.so (_ZN3art16ThreadPoolWorker8CallbackEPv+115)
addr2line: Dwarf Error: Info pointer extends beyond end of attributes
          art::ThreadPoolWorker::Callback(void*)
           /proc/self/cwd/art/runtime/thread_pool.cc:94
        #14 pc 00000000000076b9  /lib/x86_64-linux-gnu/libpthread-2.23.so (start_thread+201)
          start_thread
           ??:?
        #15 pc 000000000010741c  /lib/x86_64-linux-gnu/libc-2.23.so (clone+108)
          clone
           /build/glibc-Cl5G7W/glibc-2.23/misc/../sysdeps/unix/sysv/linux/x86_64/clone.S:109
        #16 pc 0000000000000000  ???
dex2oatd F 1760 1762 art/runtime/runtime_linux.cc:359]Fault message: /bin/bash: line 1:  1760 Aborted                 (core dumped) ( ANDROID_LOG_TAGS="*:e" out/host/linux-x86/bin/dex2oatd --runtime-arg -Xms64m --runtime-arg -Xmx512m --runtime-arg -classpath --runtime-arg "&" --boot-image=out/target/product/rk3399_firefly_mipi_box/dex_bootjars/system/framework/boot.art --dex-file=packages/apps/VehicleRobot/VehicleRobot.apk --dex-location=/system/app/VehicleRobot/VehicleRobot.apk --oat-file=out/target/product/rk3399_firefly_mipi_box/obj/APPS/VehicleRobot_intermediates/oat/arm/package.odex --android-root=out/target/product/rk3399_firefly_mipi_box/system --instruction-set=arm --instruction-set-variant=cortex-a15 --instruction-set-features=default --include-patch-information --runtime-arg -Xnorelocate --no-generate-debug-info --abort-on-hard-verifier-error --no-inline-from=core-oj.jar --compile-pic )
ninja: build stopped: subcommand failed.
build/core/ninja.mk:148: recipe for target 'ninja_wrapper' failed
make: *** [ninja_wrapper] Error 1
make: Leaving directory '/home/blv/workdata/new_rk3399/test_rk3399'

在Android 7.0 预制apk 编译发现上面的错误。
其中有用的错误信息是

FAILED: /bin/bash -c "(rm -f out/target/product/rk3399_firefly_mipi_box/obj/APPS/VehicleRobot_intermediates/oat/arm/package.odex ) && (mkdir -p out/target/product/rk3399_firefly_mipi_box/obj/APPS/VehicleRobot_intermediates/oat/arm/ ) && (ANDROID_LOG_TAGS=\"*:e\" out/host/linux-x86/bin/dex2oatd --runtime-arg -Xms64m --runtime-arg -Xmx512m --runtime-arg -classpath --runtime-arg \"&\" --boot-image=out/target/product/rk3399_firefly_mipi_box/dex_bootjars/system/framework/boot.art --dex-file=packages/apps/VehicleRobot/VehicleRobot.apk --dex-location=/system/app/VehicleRobot/VehicleRobot.apk --oat-file=out/target/product/rk3399_firefly_mipi_box/obj/APPS/VehicleRobot_intermediates/oat/arm/package.odex --android-root=out/target/product/rk3399_firefly_mipi_box/system --instruction-set=arm --instruction-set-variant=cortex-a15 --instruction-set-features=default --include-patch-information --runtime-arg -Xnorelocate --no-generate-debug-info --abort-on-hard-verifier-error --no-inline-from=core-oj.jar   --compile-pic )"
dex2oatd F  1760  1762 art/runtime/class_linker.cc:6620] Check failed: vtable_entry != other_entry && !name_comparator.HasSameNameAndSignature( other_entry->GetInterfaceMethodIfProxy(pointer_size)) vtable entries 1049 and 1054 are identical for java.lang.Class<android.support.v7.widget.MenuPopupWindow$MenuDropDownListView> in method int android.support.v7.widget.DropDownListView.lookForSelectablePosition(int, boolean) and int android.support.v7.widget.MenuPopupWindow$MenuDropDownListView.lookForSelectablePosition(int, boolean)
dex2oatd F 1760 1762 art/runtime/runtime.cc:422]Runtime aborting...
Aborting thread:

指名了错误的原因
原因是apk要预置进源码的时候,会对apk进行一个解析,好形成odex文件加速apk的运行,但是基于高版本的sdk开发的apk里面的一些资源是无法被低版本正确的解析的,解决办法就是,在mk文件里面禁止对该apk进行odex的处理。
1、LOCAL_DEX_PREOPT := false
2、让应用降低sdk版本与我们当前使用Android设备版本一致

安卓8预装可卸载应用 系统:Android 8CPU:MTK理论上改法适用于其他平台,比如展讯。不适用于安卓11。安卓11请参照。 阅读详情

相关推荐

宝塔面板添加站点及运营商SSL免费证书的申请与使用

本文详细介绍在宝塔面板下如何正确添加站点、配置站点,及在运营商如何申请免费SSL证书,将其配置到宝塔站点里。 给你的网站加一把锁,教你免费SSL证书申请,配置到自己的网站中。 环境:Ubuntu server 18 工具:宝塔控制面板 平台:阿里云 Web服务器:Nginx 宝塔:https://www.bt.cn/ 阿里云:https://www.aliyun.com/ 腾讯云:https://cloud.tencent.com/ 要求: 1.宝塔控制面板搭建完毕。 2掌握域名解析的原理。 3.了解ht

贺兰山长老 5063

ANR trace详解

文章目录1. Trace pattern2. 解释3. 关键词对照 1. Trace pattern 1."Signal Catcher" daemon prio=5 tid=3 Runnable 2. | group="system" sCount=0 dsCount=0 obj=0x32c050d0 self=0x7f97dd1400 3. | sysTid=9729 nice=0 cgrp=default sched=0/0 handle=0x7fa200e450 4. | state=R sc

wd229047557的博客 6501

Multisim实战:5分钟搞定一阶RC电路仿真(附示波器波形分析技巧)

本文通过Multisim软件,详细演示了如何快速搭建一阶RC电路并进行仿真分析。文章提供了从元件选取、电路连接、虚拟示波器设置到波形观测的完整流程,并重点分享了测量时间常数、区分电路响应类型等核心分析技巧,帮助电子工程初学者和爱好者高效掌握电路仿真与分析方法。

weixin_29175469的博客 191

Android 分析ANR和死锁

Android 分析ANR和死锁

好久不见 3万+

CAN信号定义避坑指南:Kvaser Database Editor里Byteorder和Bitpos设置的那些‘坑’

本文详细解析了在Kvaser Database Editor中配置CAN信号时,字节序(Byteorder)和起始位(Bitpos)设置的常见错误及解决方案。通过实际案例和验证技巧,帮助工程师避免DBC文件配置中的陷阱,确保车载电子系统的稳定通信。

weixin_28678831的博客 361

L2-028 秀恩爱分得快(测试点3说明)

古人云:秀恩爱,分得快。互联网上每天都有大量人发布大量照片,我们通过分析这些照片,可以分析人与人之间的亲密度。如果一张照片上出现了 K 个人,这些人两两间的亲密度就被定义为 1/K。任意两个人如果同时出现在若干张照片里,他们之间的亲密度就是所有这些同框照片对应的亲密度之和。下面给定一批照片,请你分析一对给定的情侣,看看他们分别有没有亲密度更高的异性朋友?

daybreak_alonely的博客 1418

ANR之traces日志线程参数解析大全

一秒内时钟中断的次数等于Hz。ANR故障是Android开发中的重点难点问题,而traces.txt日志的分析则是解决ANR问题的关键所在。执行 adb shell kill -3 pid或者当进程发生anr、native crash等故障的时候,系统会生成traces日志文件,默认输出到 /data/anr/ 目录下。Control groups,是Linux内核的一个功能,用来限制,控制与分离一个进程组群的资源(如CPU、内存、磁盘输入输出等)。其中以下片段为线程的各项状态参数,是本文将要解析的部分。

chuyouyinghe的专栏 1192

深度学习初探 - 入门 DL 主流框架

这个课程主要是引导大家入门TensorFlow、Theano、Keras 及 Caffe 几个主流的深度学习框架。在课程中有关各种算法的详细推导及思想我们不会做过多的陈诉,旨在通过让同学们动手操作搭建自己的神经网络模型,了解如何使用这些框架解决实际问题。课程会基于每个框架的官方文档,先带大家熟悉框架中基本的定义语法及常用函数(可看成深度模型的小零件),每个实验最后都会综合这些零件搭建一个简易的神经深度网络模型。这个项目十分适合具有一定python编程基础,对人工智能、深度学习感兴趣的同学。Theano。

2401_86435672的博客 1244

Android报错之Dumping all threads without appropriate locks held: thread list lock mutator lock

最近在Debug Android工程时,发现真机直接崩溃闪退,但直接run则没问题,debug闪退日志报错:Dumping all threads without appropriate locks held: thread list lock mutator lock,之前调试还是好好的,为什么突然就不行了呢? 具体日志如下: 12-07 10:37:05.736: I/System

LVXIANGAN的专栏 1万+

从SOMEIP看SOA,汽车电子电器架构的转变

从SOMEIP看SOA,汽车电子电器架构的转变

天赐好车的博客 248

RH850从0搭建Autosar开发环境【3X】- Davinci Configurator之BswM模块配置详解(上)

RH850从0搭建Autosar开发环境【3X】- Davinci Configurator之BswM模块配置详解(上)

weixin_42412049的博客 745

ANR超时种类及产生原因

ANR产生原因及分类 ANR的产生需要同时满足三个条件 1.主线程:只有应用程序进程的主线程响应超时才会产生ANR; 2.超时时间:产生ANR的上下文不同,超时时间也不同,但只要超过这个时间上限没有响应就会产生ANR; 3.输入事件/特定操作:输入事件是指按键、触屏等设备输入事件,特定操作是指BroadcastReceiver和Service的生命周期中的各个函数调用。 产生ANR的上...

一杯咖啡的专栏 8798

霍尼韦尔SoftMaster使用说明

霍尼韦尔SoftMaster使用说明

android 编译问题解决

1、android4.2.2 '/root/origin_android/mokesoures/out/target/common/obj/APPS/ApplicationsProvider_intermediates/classes.dex' as 'classes.dex'... /root/origin_android/mokesoures/out/target/comm...

weixin_30379911的博客 155

lwip-2.0.3

lwip是瑞典计算机科学院(SICS)的Adam Dunkels 开发的一个小型开源的TCP/IP协议栈。实现的重点是在保持TCP协议主要功能的基础上减少对RAM 的占用。

Probability and Statistics - 4th edition

Probability and Statistics - 4th edition

Android 12/13 artifact_path_requirements错误 预制apk/预制bootanimation相关framework实战课程答疑

粉丝朋友在学习我的课程内置应用时候,和bootanimation时候,发现如果在Android 12/13 上预制apk时候发现有编译不过情况,报artifact_path_requirements相关错误这里乍一看估计99%的人都不知道怎么回事,这里其实可以从提示是可以看出来:大概是因为新版本artifact_path_requirements有对预装相关东西进行了规则检测,发现system/app/MyApp/MyApp.apk这种预制到system/app的情况属于违规了。

learnframework的博客 5924

贝叶斯统计 [韦来生编]

贝叶斯(Bayes)统计是近几十年来迅速发展起来的数理统计的一个重要分支。贝叶斯方法与经典统计方法的主要不同之处是进行统计推断时除了利用样本信息外,还要利用参数的先验信息,因此可以提高统计推断或统计决策的效果。它在经济、金融、生物、医学、自然科学和社会科学等许多领域具有广泛的应用。贝叶斯方法的研究已渗透到了统计学的几乎所有领域。作者在给中国科学技术大学概率论与数理统计专业本科生开设的“数理统计”课程中有一章专门讲授“贝叶斯方法和统计决策理论”,近十年来也给中国科学技术大学概率统计专业研究生开设过几次“贝叶斯分析”课。本书是在对过去讲稿的内容作了适当的增减和调整的基础上完成的。  本书共分六章。第1章是绪论,介绍了贝叶斯统计的若干基本概念,同时对必要的数理统计的基础知识有重点地作了回顾。第二章介绍了确定先验分布的若干可供选择的方法。第三章介绍了几类常见统计模型参数的后验分布的主要结果和计算方法。第四章和第五章分别介绍了“贝叶斯统计推断”和“贝叶斯统计决策”的内容。第六章介绍了贝叶斯统计计算的若干方法,包括蒙特卡洛方法和马尔可夫链蒙特卡洛(MCMC)方法以及相关统计软件的简介。本书的每一章附右大量的例题和习题,书末附有常用的几个表格和部分习题解答供读者查用。  大约可在54学时内讲授本书的第1章至第六章的主要内容,教师可根据学时需要选讲本书第1章至第六章的部分内容。书中标“*”号的章节可略去不讲,留给读者作为阅读材料。第六章例题中的R代码和部分例题的数据文件等可从作者个人主页下载。  作者在编写本书的过程中参考了J.O.Berger教授的《统计决策论及贝叶斯分析》和茆诗松教授编写的《贝叶斯统计》等书中的一些内容,以及《贝叶斯分析》一书中由张伟平博士编写的有关贝叶斯统计计算的一些内容。在此表示衷心感谢。  本书编写准备过程中,中国科学技术大学统计与金融系的几个研究生帮助完成了本书部分中文的录入和排版,作者对他们的辛勤工作表示真诚的感谢。高等教育出版社为本书的出版给予了大力支持。在此一并致谢。

android 11(R)预装APP到data/app目录

android高版本,默认是无法预装app到/data/app目录下的,因为用低版本的方法去修改的话烧录后会无法开机。假设是添加myapplication.apk到sdk中的, 烧录后要装到/data/区 LOCAL_MODULE_PATH := $(TARGET_OUT_DATA_APPS) 由这行来控制安装到data/app下。 编译成功标志 编译过程会有类似打印,说明编译进去了 [ 99% 2339/2362] Install: out/target/product/ums512_1h10/data/

zmlovelx(帅得不敢出门 程序员群31843264) 8173

Android 11预制第三方应用&适配so库异常问题

遇到的部分应用预制问题简单分析,场景不一定全,但也有涉及部分。

qq_40847113的博客 4333

Android高版本(R+)实战:手把手教你用Android.bp预制动态库(附完整代码)

本文详细介绍了在Android高版本(R+)中使用Android.bp文件预制动态库(.so文件)的完整实战流程。针对Soong构建系统,重点解析了`cc_prebuilt_library_shared`模块的核心配置,包括多架构适配、依赖管理及常见问题排查,并提供了从Android.mk迁移的要点和完整代码示例,帮助开发者高效集成第三方或预编译的动态库。

weixin_29302047的博客 387

系统源码预制APK检测是否可以进行ODEX抽取

odex抽取会导致增加内存,开机时间变短,公司公司的要求是增加内存可以接受.增加开机时间不能接受. 公司每次打包系统都会遇到预制公司内部apk和第三方apk进行源码编译进行报错,导致编译失败的问题. 如果是预制纯正的第三方apk不能进行odex抽取,那只能进行在对应的Android.mk关闭odex抽取 LOCAL_DEX_PREOPT := false 要是预制的大部分是自己公司...

小路塔的博客 1809

android第三方app改为系统app,加入system组,获取system权限

用Androd studio 开发的app,编译出apk, 想获取system权限。 环境:编译好的apk, android 源码环境,有root权限和源码对应的开发板,我这里是user版本。 思路:1 可以的话直接把整个app源码移到 android源码上编译,但是问题重重,sdk版本和兼容包,依赖包等等。最后关键是,编译成系统app时,需要依赖的so库和动态jar包 是不会被打包到apk中...

Canok 1万+

开源模型部署实战:从选型到RAG构建AI基础设施

从“模型即基础设施”的视角出发,区别于调用闭源API的“家电模式”,开源模型以权重开放为核心,赋予企业数据安全、成本可控与供应链自主权。理解其与源代码开放的区别后,即可通过Transformers、vLLM、llama.cpp等推理引擎完成从本地脚本到服务化API的升级。结合RAG(检索增强生成)技术,可将模型无缝嵌入业务知识库问答链路,实现可观测、可治理的私有化部署。这一路径适用于需要隐私合规的金融医疗场景、低资源边缘设备及高并发生产环境。最终,开源模型正像数据库一样成为AI时代的关键基础设施。

weixin_33857230的博客 428

Android MTK 预制应用遇到的问题

一.预置uc浏览器报错 FAILED: out/target/product/apower_xj/obj/APPS/UcApp_intermediates/oat/arm64/package.odex /bin/bash -c "(rm -f out/target/product/apower_xj/obj/APPS/UcApp_intermediates/oat/arm64/package.o...

YHMQ66的博客 1949

Android 12 S artifact_path_requirements Offending entries Build failed ckati failed with/ aosp预制apk

粉丝朋友在学习我的课程内置应用时候,发现如果在Android 12 S上预制apk时候发现有编译不过情况,报artifact_path_requirements相关错误 入门课,实战课,跨进程专题 ps需要学习深入framework课程和课程优惠 (可以加我qq:2102309716 优惠购买) 具体错误显示如下: build/make/core/artifact_path_requirements.mk:26: warning: build/make/target/product/sdk_phone_

liaosongmao1的专栏 2269

android framework之priv-app,系统特权app权限那些坑

csdn在线学习课程,课程咨询答疑和新课信息:QQ交流群:422901085进行课程讨论 android跨进程通信实战视频课程(加群获取优惠) hi,大家好! 在做framework开发过程中相信很多朋友会有一些关于系统应用的一些权限问题,在学习过千里马相关系统内置应用相关课程后,大家也知道了系统内置应用一般放在system/app路径下,这样就不会被用户随意卸载了,但是app放在这下面具体运行起来有哪些权限和没有哪些权限就不是很清楚了。 这里刚好做一个比较全面总结: android中app主要有3个路径可

learnframework的博客 7867

Target runtime com.genuitec.runtime.generic.jee60 is not definde

myeclipse报错: Description Resource Path Location Type Target runtime com.genuitec.runtime.generic.jee60 is not defined. AECTest Unknown Faceted Project Problem 解决方法: 找到工程目录下的.settings文件下的org.eclipse.w...

mango 198
上一篇: Android串口Serial服务解析
下一篇: Android 64位机器system app兼容32位apk问题分析(共享system uid )
九霄的爸爸
博客等级 码龄16年 240粉丝 86原创
评论 9
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

当前余额3.43元 前往充值 >
需支付:10.00元
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

九霄的爸爸

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付元
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值