使用Android Studio遇到的问题

本文记录了在使用Android Studio过程中遇到的几个典型问题及其解决方案,包括无法启动守护进程的错误、Gradle报告的Protocol Family Unavailable错误以及Gradle DSL方法未找到的错误。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

1.Android Studio新 建一个Android Project后,Android Studio提示下面了这个错误
Error:Unable to start the daemon process.
This problem might be caused by incorrect configuration of the daemon.
For example, an unrecognized jvm option is used.
Please refer to the user guide chapter on the daemon at https://docs.gradle.org/2.8/userguide/gradle_daemon.html
Please read the following process output to find out more:
-----------------------
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=256m; support was removed in 8.0

新建一个项目,提示这个错误。

查了很久大概查到和JVM虚拟机的内存大小有关系,但是设置了还是这样,继续查问题
 
今天查出来了,是亿赛通的问题....

2. 解决了上面那个问题后。Gradle 又报了这个错: Protocol Family Unavailable
继续查问题 查了一下午,还是那个错,重装系统后解决了 真是心累!

3.再Gradle中添加如图  时报这个错,Error:(9, 0) Gradle DSL method not found: 'compile()'
compile 'com.android.support:recyclerview-v7:21.0.+'

我怀疑是Gradle的问题,google中....

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值