Thanks! It works now.
在 2015年12月1日星期二 UTC+8上午12:51:12,Xavier Ducrohet写道:
>
> You should not be doing this. Why not add this to the sourceset instead?
>
> android {
> sourcesets {
> main {
> jniLibs.srcDir new File(buildDir, 'lib')
> {
> }
> }
>
> On Tue, Nov 24, 2015 at 7:20 PM, Yuanjie Zhao <[email protected]
> <javascript:>> wrote:
>
>> Hi, here is part of our app's build.gradle:
>>
>> tasks.withType(com.android.build.gradle.tasks.PackageApplication) {
>> pkgTask ->
>> pkgTask.jniFolders = [new File(buildDir, 'lib')]
>> }
>>
>> When I trying to use Instant Run, build failing with error:
>>
>> Cannot set the value of read-only property 'jniFolders' on task
>> ':app:packageProdDebug'.
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "adt-dev" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to [email protected] <javascript:>.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
>
> --
> Xavier Ducrohet
> Android SDK Tech Lead
> Google Inc.
> http://developer.android.com | http://tools.android.com
>
> Please do not send me questions directly. Thanks!
>
--
You received this message because you are subscribed to the Google Groups
"adt-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.