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。

 

点开红色箭头所指模块

 然后点击红框中的按钮

 

Logo

为开发者提供学习成长、分享交流、生态实践、资源工具等服务,帮助开发者快速成长。

更多推荐