I’m using gomobile to compile an Android aar. The issue I have is when there is 
a crash in the native code, I don’t see any stack trace. Crash reports from the 
Google Console are equally useless.

If anyone has stack traces figured on on gomobile, I’d love your help to learn 
how.

My build flags are below:

gomobile bind \
                -target=android/arm64,android/amd64 -androidapi 24 \
                -javapkg com.bringyour \
                -trimpath \
                -gcflags="-dwarf=true" \
                -ldflags="-X client.Version=$$WARP_VERSION -compressdwarf=false 
-B gobuildid" \
                -o build/android/BringYourClient.aar \
        bringyour.com/client <http://bringyour.com/client>

I thought I must be dropping the debug symbols in the build, but I can’t tell 
what would cause this. The gradle file includes the usual NDK debugSymbolLevel, 
below.

// see https://developer.android.com/build/shrink-code
ndk {
    debugSymbolLevel 'SYMBOL_TABLE'
}



Brien

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/1B14F76F-7069-4F1F-BB04-F39D90AB8874%40gmail.com.

Reply via email to