question:
After Android Studio was upgraded to 4.2, it was found that the moudle could not play aar, that is, the Tasks directory was not displayed, as shown in the figure below
Solution:
step one:
Select the status bar File ---> Settings... ---> Experimental ---> "Do not build Gradle task list during Gradle sync" Uncheck the previous box ---> Apply ---> OK
Step two:
Select the status bar File ---> Sync Project with Gradle Files ---> wait for the synchronization to succeed
Step 3: Clear the cache and restart
Select the status bar File ---> Invalidate Caches... ---> Invalidate and restart
The finished result is shown in the figure:
Find Tasks---> build ---> double-click assemble under the corresponding module, that is, it can be packaged into aar later