我使用的是Android Studio 2.2.3。我的应用程序一直在编译和正常工作但突然今天我收到了这个错误:
Error:Execution failed for task ':app:prepareComGoogleAndroidGmsPlayServicesAds980Library'.
> Failed to create parent directory 'C:\Users\[My path]\androidapp\build\app\build\intermediates\exploded-aar\com.google.android.gms\play-services-ads' when creating directory 'C:\Users\[My path]\androidapp\build\app\build\intermediates\exploded-aar\com.google.android.gms\play-services-ads\9.8.0'
我尝试使用“文件>无效缓存/重新启动...”重新启动Android Studio,并以管理员身份运行Android Studio,但错误仍然存在。关于这个问题可能是什么原因的任何想法?
答案 0 :(得分:0)
解决方案是从Android 2.2.3升级到Android 3.0.1。但后来我收到了这个错误:
Warning:The specified Android SDK Build Tools version (23.0.1) is ignored, as it is below the minimum supported version (26.0.2) for Android Gradle Plugin 3.0.1. Android SDK Build Tools 26.0.2 will be used. To suppress this warning, remove "buildToolsVersion '23.0.1'" from your build.gradle file, as each version of the Android Gradle Plugin now has a default version of the build tools. <a href="fix.build.tools.version">Update Build Tools version and sync project</a><br><a href="openFile:C:/Users/[My path]/androidapp/build/app/build.gradle">Open File</a>
解决方案正在评论buildToolsVersion "23.0.1"
。