android studio遇到的一些问题

本文列举了在使用Android Studio时遇到的三个典型问题:1)Gradle版本不兼容问题,解决方案是升级Gradle到最低支持版本;2)资源未找到错误,需要删除manifest.xml中与google_play_services_version相关的代码;3)运行ndk-build时找不到文件,解决方法是修改为ndk-build.cmd。通过这些方法可以有效解决Android Studio开发中遇到的问题。
摘要由CSDN通过智能技术生成
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:Execu
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值