Execution failed for task ‘: :compileDebugJavaWithJavac

Execution failed for task ': xxx:compileDebugJavaWithJavac

An error is reported during compilation, the keyword is as above
Solution:

Change the version numbers of several sdk related to android, try to keep the version numbers similar

The following is my configuration, for reference only

// 版本信息
androidVersion = [
        compileSdkVersion : 28,
        buildToolsVersion : '29.0.2',
        minSdkVersion     : 19,
        targetSdkVersion  : 28,
        ndkVersion  : '21.1.6352462',
        supportLibVersion  : '28.1.1',
        versionCode: 1,
        versionName: '1.0'
]

 

Guess you like

Origin blog.csdn.net/hnlht/article/details/124388863