1、Error:(1, 1) A problem occurred evaluating project ':app'.
> Failed to apply plugin [id 'com.android.application']
> Minimum supported Gradle version is 3.3. Current version is 3.2. If using the gradle wrapper, try editing the distributionUrl in E:\project\android_project\audiodebug\gradle\wrapper\gradle-wrapper.properties to gradle-3.3-all.zip
解决办法:
在http://services.gradle.org/distributions/ 网站下载对应版本的gradle
2、Information:Gradle tasks [:app:generateDebugSources, :app:generateDebugAndroidTestSources, :app:mockableAndroidJar, :app:prepareDebugUnitTestDependencies]
Error:No resource found that matches the given name (at 'value' with value '@integer/google_play_services_version').
Error:No resource found that matches the given name (at 'value' with value '@integer/google_play_services_version').
Error:Execution failed for task ':app:processDebugResources'.
> com.android.ide.common.process.ProcessException: Failed to execute aapt
解决办法:
将 manifest.xml 中如下内容删掉,已经代码中自动生成的google gms代码删掉
<!-- ATTENTION: This was auto-generated to add Google Play services to your project for
App Indexing. See https://g.co/AppIndexing/AndroidStudio for more information. -->
<meta-data
android:name="com.google.android.gms.version"
android:value="@integer/google_play_services_version" />
3、Error running ndk-build:
Cannot run program "D:\Android\sdk\ndk-bundle\ndk-build" (in directory "E:\project\android_project\androidashmem\app\src\main"):
CreateProcess error=2, 系统找不到指定的文件
解决办法:
将D:\Android\sdk\ndk-bundle\ndk-build
改成 D:\Android\sdk\ndk-bundle\ndk-build.cmd
> Failed to apply plugin [id 'com.android.application']
> Minimum supported Gradle version is 3.3. Current version is 3.2. If using the gradle wrapper, try editing the distributionUrl in E:\project\android_project\audiodebug\gradle\wrapper\gradle-wrapper.properties to gradle-3.3-all.zip
解决办法:
在http://services.gradle.org/distributions/ 网站下载对应版本的gradle
2、Information:Gradle tasks [:app:generateDebugSources, :app:generateDebugAndroidTestSources, :app:mockableAndroidJar, :app:prepareDebugUnitTestDependencies]
Error:No resource found that matches the given name (at 'value' with value '@integer/google_play_services_version').
Error:No resource found that matches the given name (at 'value' with value '@integer/google_play_services_version').
Error:Execution failed for task ':app:processDebugResources'.
> com.android.ide.common.process.ProcessException: Failed to execute aapt
解决办法:
将 manifest.xml 中如下内容删掉,已经代码中自动生成的google gms代码删掉
<!-- ATTENTION: This was auto-generated to add Google Play services to your project for
App Indexing. See https://g.co/AppIndexing/AndroidStudio for more information. -->
<meta-data
android:name="com.google.android.gms.version"
android:value="@integer/google_play_services_version" />
3、Error running ndk-build:
Cannot run program "D:\Android\sdk\ndk-bundle\ndk-build" (in directory "E:\project\android_project\androidashmem\app\src\main"):
CreateProcess error=2, 系统找不到指定的文件
解决办法:
将D:\Android\sdk\ndk-bundle\ndk-build
改成 D:\Android\sdk\ndk-bundle\ndk-build.cmd