Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build type isn't jni debuggable #42

Closed
rkrishnan2012 opened this issue Jul 23, 2015 · 9 comments
Closed

Build type isn't jni debuggable #42

rkrishnan2012 opened this issue Jul 23, 2015 · 9 comments

Comments

@rkrishnan2012
Copy link

@proppy I followed the instructions importing into AndroidStudio but when I create a "Android Native" run configuration, I get the error "Build type isn't jni debuggable". Any thoughts?

This is on latest canary version of studio 1.3 rc 3 and gradle 2.5 rc1 . This happens for all the samples, but im referring to hello-jni

@proppy
Copy link
Contributor

proppy commented Jul 24, 2015

@rkrishnan2012 yes, you have to add isJniDebuggable to the debug {} section in build.gradle, see: #20

@proppy proppy closed this as completed Jul 24, 2015
@proppy
Copy link
Contributor

proppy commented Aug 6, 2015

FYI the new syntax with gradle-experimental-0.2.0 is:

android.buildType {
  release {
    ndk {
      debuggable = true
    }
  }
}

And it's activated by default for the debug buildType.

@ghost
Copy link

ghost commented Oct 25, 2015

Just if anyone stumbles across, it's ndk.with, so:

android.buildType {
  release {
    ndk.with {
      debuggable = true
    }
  }
}

@rkrishnan2012
Copy link
Author

lol thanks for keeping this up to date 👍

@conect
Copy link

conect commented Nov 4, 2015

Hi I'm using Android Studio 1.5 Preview. When I post merlux code I receive:
Error:(25,0):

  • The project "..." may be using a version of Gradle that does not contain the method.
  • The build file may be missing a Gradle plugin.

What can I do?
thx a lot.

@kimkha
Copy link

kimkha commented Nov 18, 2015

Now you just say:

        jniDebuggable true

@ggfan
Copy link
Contributor

ggfan commented Nov 18, 2015

This works for me:

android.buildTypes {
release {
minifyEnable=false
proguardFiles.add(file("proguard-android.txt"))
}
// the following are default when you choose debug build inside android studio
// you could add them into your module gradle to try it out.
debug {
debuggable = true
ndk.with {
debuggable = true //change this to false, you will see Android studio complain could not debug anymore
}
}
[I am using version 1.4.1, latest gradle-experimental plugin 0.4.0, gradle 2.8

@IgorGanapolsky
Copy link

@ggfan Why do you have debuggable in two places?

@ggfan
Copy link
Contributor

ggfan commented Sep 2, 2016

that was long one ago, need to confirm. My thought there was: one for java, one for native

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants