NDK Debugging with gradle-experimental plugin

后端 未结 1 1416
余生分开走
余生分开走 2021-01-15 18:12

I\'m trying to add native debugging to a project that is an Android Studio NDK project. In the past I just used gradle to kick off a shell script, which built the NDK lib.

1条回答
  •  隐瞒了意图╮
    2021-01-15 18:57

    A general way to do the include you're looking for is this in the dependencies. compile fileTree(dir: 'libs', include: ['*.jar'])

    However, I'm not certain that will solve this particular problem. I've always had success with putting the jar in the libs directory at the top of the directory structure. If you need to have the jar in a different location, then this works for me:

    repositories {
        flatDir {
            dirs ''
        }
    }
    
    model { ... }
    
    dependencies {
        compile fileTree(dir: 'libs', include: ['*.jar'])
    }
    

    0 讨论(0)
提交回复
热议问题