Ever figured out the error? Seems like the offensive line is trying to set
abiFilters to something, adding all works but it still tries to generate
all architectures independently of what I add.
On Wednesday, November 9, 2016 at 5:52:56 PM UTC-8, Praveen Kumar wrote:
>
> I am also getting similar error:
>
> Error:Cannot set readonly property: abiFilters for class:
> com.android.build.gradle.managed.NdkConfig
>
> here is my configuration:
>
> ndk {
>
> // All configurations that can be changed in android.ndk.
>
>
> abiFilters = []
> abiFilters.addAll(ABI_FILTERS.split(';').collect{it as String})
> }
>
>
>
> in gradle.properties
> ABI_FILTERS=armeabi-v7a;x86
> -------
> On Tuesday, July 5, 2016 at 2:43:17 PM UTC+5:30, Vitaliy Avramenko wrote:
>>
>> I need to compile x86, armeabi and armeabi-v7a versions of my so library
>> only. It doesn't support x64 still, and I don't have time & wish to add
>> this support.
>> So, I try to use following directive:
>>
>> ndk {
>> abiFilters = ["armeabi-v7a", "armeabi", "x86"]
>>
>> }
>>
>>
>> I use gradle-experimental. And I receive following error message:
>>
>>
>> Error:(30, 1) A problem occurred configuring project ':app'.
>> > Exception thrown while executing model rule: android { ... } @
>> > app\build.gradle line 25, column 5
>> > Cannot set readonly property: abiFilters for class:
>> com.android.build.gradle.managed.NdkConfig$Impl
>>
>>
>> So, how to enable just some specific ABIs in Android project that uses
>> gradle-experimental and NDK?
>>
>>
--
You received this message because you are subscribed to the Google Groups
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit
https://groups.google.com/d/msgid/android-developers/485920c3-23dc-4e07-bd1d-3946a89d369f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.