Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unable to set abiFilter using kotlin dsl

After updating android gradle plugin from 4.0.3 to 4.1.0, I am not able to set abiFilter in kotlin DSL.

Getting following error.

Val cannot be reassigned

like image 669
Sravan Avatar asked Feb 01 '26 20:02

Sravan


1 Answers

Guess this will be more idiomatic than other current answers,

    ndk {
        abiFilters += listOf("armeabi-v7a", "arm64-v8a", "x86", "x86_64")
    }
like image 128
Ebrahim Byagowi Avatar answered Feb 04 '26 11:02

Ebrahim Byagowi



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!