Android 旧项目打包 api-versions.xml Stream closed

Execution failed for task ‘:moduleuser:compileDevReleaseJavaWithJavac’.
android.databinding.tool.util.LoggedErrorException: failure, see logs for details.
cannot load api descriptions from …\Android\Sdk\platform-tools\api\api-versions.xml java.io.IOException: Stream closed

解决: 下载 api-versions.xml 放到sdk的platform-tools\api\中,clean后重新打包成功。

你可能感兴趣的:(Android,安卓)