Issue
When using an Emulator with Android Studio I am able to step through the C++.
Once I start running this on a real device I am able to break inside the Java but not in any of the native code.
I am using Android Studio 3.2.1 and building for SdkVersion 28 and min SDK 22. I running on a 5.1 emulator.
Here is my build.grable (App)
android {
compileSdkVersion 28
defaultConfig {
applicationId "com.ash_eng.www.contordroid"
minSdkVersion 22
targetSdkVersion 28
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
externalNativeBuild {
cmake {
cppFlags ""
}
}
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
externalNativeBuild {
cmake {
path "CMakeLists.txt"
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
}
The real hardware I am using is a Honor 9 running android 8.0.
Am I missing some configuration on the phone?
Solution
Thanks to Alex's comment, NDK working now on a non-rooted LG G3 without any issues. It was an issue with Huawei / Honor locking out NDK debugging.
Answered By - John Judd
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.