cocos2d-build.gradle: API 'variant.getMergeAssets()' is obsolete and has been replaced with 'variant.getMergeAssetsProvider()'.

问题:升级AndroidStudio2.x To 3.x时,

Sync时警告:build.gradle: API 'variant.getMergeAssets()' is obsolete and has been replaced with 'variant.getMergeAssetsProvider()'.

解决:

改变
variant.mergeAssets.doLast { 为: variant.mergeAssetsProvider.
get().doLast {

 

posted @ 2020-05-18 12:07  Jova  阅读(4117)  评论(0编辑  收藏  举报