新建项目报错,Failed to execute appt 错误,导致R文件报错的解决办法
错误的问题:
Error:FAILURE: Build failed with an exception.
// What went wrong:
Execution failed for task ':app:processDebugResources'.
> com.android.ide.common.process.ProcessException: Failed to execute
aapt
//Try:
Run with --stacktrace option to get the stack trace. Run with --info or
--debug option to get more log output.
其实此问题还是比较容易解决的,首先大家可以看到appt属于SDK名下,那么就一定与sdk有关系,那么可能是你
的sdk没有下载好,或者是需要更新,所以我们应该找到Android sdk 下载它或者更新它。
注意看下图: