Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Meaning of "android.enableAapt2 will be removed at the end of 2018"?

Gradle version: 4.4 Android Plugin Version: 3.1.2

Hi. I'm working on an Android which should be deploy by using a Mobile Device Management called AirWatch. So since Android Gradle Plugin 3.0.0, even if I update application version code and version name, the MDM thinks that the last deployed version and the current one are the same.

Using dump badging command, I see that the platformBuildVersionName is empty. So when I disable aapt2 from my gradle properties file, platformBuildVersionName is filled. which allow me to deploy on the MDM. The problem is not up to date we don't when they will. So this is the work around I found. I know that the option 'android.enableAapt2' is deprecated and should not be used anymore.

My question is what's the meaning "It will be removed at the end of 2018"? Is that mean, at the end of 2018, my app will not compile anymore?

Thanks

like image 557
13KZ Avatar asked Jun 04 '18 09:06

13KZ


1 Answers

In 2019 New update From Gradle.properties remove

android.enableAapt2=false this line

it will work now.

like image 120
Alwayss Bijoy Avatar answered Oct 21 '22 01:10

Alwayss Bijoy