Issue
I'm implementing a few instrumented tests for a module (which is packaged in a aar
archive, not apk
) library I'm working on. The module is written partially in Java and partially in C.
Sadly a crash is occurring while running my tests and executing native code; I want to symbolicate the crash dump with ndk-stack
in order to see the actual culprit and investigate my problem.
I know that those files should be in the object directory obj/, right inside the project directory, specifically:
$PROJECT_PATH/obj/local/<ABI>
The problem is that they simply aren't there. Where are they? How can I let the androidTest related tasks generate them or showing me where they are? What am I missing?
The project structure is the following:
MyProject
|_ :app (a single button application which integrates the library)
|_ :myLibrary (the actual library I'm working on and testing)
|_ java
| |_ my.package.name
| |_ my.package.name (androidTest) <- a test here crashes
| |_ my.package.name (test)
|_ cpp
|_ my native files
Solution
After the discussion in the comments it appeared that the correct path to find debug object symbols is:
$PROJECT_PATH/myLibrary/build/intermediates/ndkBuild/debug/obj
Answered By - fredmaggiowski
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.