buildscript { repositories { maven { url 'https://maven.fabric.io/public' } }
dependencies { classpath 'io.fabric.tools:gradle:1.+' }}apply plugin: 'com.android.application'apply plugin: 'io.fabric'
repositories { maven { url 'https://maven.fabric.io/public' }}
android { compileSdkVersion 23 buildToolsVersion "23.0.3"
defaultConfig { applicationId "com.app.myapp" minSdkVersion 14 targetSdkVersion 23
// Enabling multidex support. multiDexEnabled true
dexOptions { javaMaxHeapSize "4g" }
externalNativeBuild { ndkBuild { targets "MyApp" arguments "NDK_MODULE_PATH:=../../../libs","NDK_TOOLCHAIN_VERSION:=clang","-j8" //cppFlags "-O2", "-std=c++14","-frtti","-fpermissive","-fexceptions","-ferror-limit=1","-Qunused-arguments","-Wno-extern-c-compat","-Wno-deprecated-register" abiFilters "armeabi-v7a" } } }
externalNativeBuild { ndkBuild { path 'src/main/jni/Android.mk' } }
buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt' } }
productFlavors { create("arm7") }}
dependencies { compile 'com.android.support:appcompat-v7:23.4.0' compile 'com.google.android.gms:play-services:+' compile('com.crashlytics.sdk.android:crashlytics:2.6.2@aar') { transitive = true; } compile('com.crashlytics.sdk.android:crashlytics-ndk:1.1.4@aar') { transitive = true }}
Try to add a buildType 'debug' and remember - g as option to your compiler.
--
You received this message because you are subscribed to the Google Groups "android-ndk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-ndk...@googlegroups.com.
To post to this group, send email to andro...@googlegroups.com.
Visit this group at https://groups.google.com/group/android-ndk.
To view this discussion on the web visit https://groups.google.com/d/msgid/android-ndk/7ec2af61-ac94-4a1a-9bcb-87151bf4c714%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
...
buildTypes {
release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt' }
debug { minifyEnabled false } }
...
buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt' }
debug { minifyEnabled false jniDebuggable true //!!! this line was missing !!! } }