Error:Could not determine the dependencies of task ‘:app:compileDebugJavaWithJavac‘
AS 3.6安装完成后新建项目运行之,出现报错如下:Error:Could not determine the dependencies of task ':app:compileDebugJavaWithJavac'.Could not create service of type AnnotationProcessorDetector usingJavaGradleScopeSe...
·
AS 3.6安装完成后新建项目运行之,出现报错如下:
Error:Could not determine the dependencies of task ':app:compileDebugJavaWithJavac'.
Could not create service of type AnnotationProcessorDetector using
JavaGradleScopeServices.createAnnotationProcessorDetector().
解决办法:gradle在初始化的时候没有下载,这时候需要科学上网,并且将gradlegradle offline离线模式关闭,as 3.6 offline搬家了,To enable or disable Gradle's offline mode, first select View > Tool Windows > Gradle from the menu bar. Then, near the top of the Gradle window, click Toggle Offline Mode Gradle offline button in the Gradle panel。
点开红色箭头所指模块
然后点击红框中的按钮
更多推荐
已为社区贡献1条内容
所有评论(0)