redex icon indicating copy to clipboard operation
redex copied to clipboard

AAB release error: [DexMember = DexClass]: assertion `elems.size() == 1' failed

Open yen-dang-ts opened this issue 2 years ago • 1 comments

I got error when sign on aab release file:

s + 42220 2 finalizer 0x00000001060caed8 BZ2_hbCreateDecodeTables + 40744 3 finalizer 0x00000001060cc86a BZ2_hbCreateDecodeTables + 47290 4 finalizer 0x000000010608d4f8 _ZN5boost6thread21start_thread_noexceptEv + 296 5 libsystem_pthread.dylib 0x00007ff80e7b44e1 _pthread_start + 125 6 libsystem_pthread.dylib 0x00007ff80e7aff6b thread_start + 15 libc++abi: terminating with uncaught exception of type boost::exception_detail::error_info_injector<RedexException>: /tmp/src/workspace/products/Arxan_for_Android/Finalizer_Release/source/cpp/libs/redex/libredex/ApiLevelChecker.h:85: static int32_t api::LevelChecker::get_level(const DexMember *) [DexMember = DexClass]: assertion `elems.size() == 1' failed. libc++abi: terminating with uncaught exception of type boost::exception_detail::error_info_injector<RedexException>

yen-dang-ts avatar Nov 27 '23 07:11 yen-dang-ts

I am guessing a piece of code in your application has an annotation like @RequiresApi(api = X, value = X) and this logic is not expecting to have both api and value specified (they seem redundant). Can you look for that in your input code and just set either api or value?

wsanville avatar Nov 27 '23 17:11 wsanville