在SDK的程序里,想要直接运行java文件,但是会出现错误:
FAILURE: Build failed with an exception.
-
Where:
Initialization script ‘C:\Users\��\AppData\Local\Temp\MKSKtest_main__.gradle’ line: 21 -
What went wrong:
A problem occurred configuring project ‘:pos_android_studio_app’.
Could not create task ‘:pos_android_studio_app:MKSKtest.main()’.
SourceSet with name ‘main’ not found.
解决方法:
在.idea的gradle中加入一条配置
<option name="delegatedBuild" value="flase">