0

我正在使用 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,使用“File > Invalidate Caches / Restart...”,并以管理员身份运行 Android Studio,但错误仍然存​​在。关于这个问题可能是什么原因的任何想法?

4

1 回答 1

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"

于 2017-12-07T21:16:28.810 回答