我正在开发一个应用程序,它将自动捕获图像并在应用程序启动时将其存储在SD卡中.(即)在应用程序初始化之后没有任何用户交互.我听说使用意图,我们可以拍照,但用户交互是必要的.所以我使用相机类.但它没有用.我遇到了各种各样的帖子,但似乎没什么用处.任何人都可以给我一个建议吗?
我的代码在更新之前工作正常.但在我更新到2.3.1后,它开始出现以下错误,
Error:org.gradle.api.internal.tasks.DefaultTaskInputs$TaskInputUnionFileCollection cannot be cast to org.gradle.api.internal.file.collections.DefaultConfigurableFileCollection
Possible causes for this unexpected error include:<ul><li>Gradle's dependency cache may be corrupt (this sometimes occurs after a network connection timeout.)
<a href="syncProject">Re-download dependencies and sync project (requires network)</a></li><li>The state of a Gradle build process (daemon) may be corrupt. Stopping all Gradle daemons may solve this problem.
<a href="stopGradleDaemons">Stop Gradle build processes (requires restart)</a></li><li>Your project may be using a third-party plugin which is not compatible with the other plugins in the project or the …Run Code Online (Sandbox Code Playgroud)