Execution failed for task 报错总计:
Execution failed for task ‘:app:compileDebugJavaWithJavac‘
原因:Android studio配置的JDK版本和gradle版本不对导致
解决:修改当前的JDK版本File->Settings->搜索Gradle->Gradle JDk
Unable to make field private final java.lang.String java.io.File.path accessible: module java.base does not “opens java.io” to unnamed module @4f3bc4f
原因:JDK版本过高导致,修改正常版本就行
Could not create task ':app:Test.main()'
原因:Android studio 项目选择kotlin、无法编译Java
* What went wrong:
A problem occurred configuring project ':app'.
> Could not create task ':app:Test.main()'.
> SourceSet with name 'main' not found.
解决:project模式->.idea文件夹-> gradle.xml,在
<option name="delegatedBuild" value="false" />
版权属于:Monster_4y
本文链接:https://blog.zmonster.top/84.html
转载时须注明出处及本声明