android studio avg,android studio 遇到的问题汇总

0.提示权限,在清单定义了还是没有用的话android {

compileSdkVersion 25

buildToolsVersion "25.0.1"

defaultConfig {

applicationId "hk.tritech.silergybleapp"

minSdkVersion 21

targetSdkVersion 22

versionCode 1

versionName "1.0.1"

testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"

}

记得targetSdkVersion 22

0.android studio failed to open zip file

http://blog.csdn.net/captain_magicer/article/details/52076338

2.Error:Execution failed for task ':app:processDebugManifest'.

> Manifest merger failed with multiple errors, see logs

原因:

AS的Gradle插件默认会启用Manifest Merger Tool,若Library项目中也定义了与主项目相同的属性(例如默认生成的Android:icon和android:theme),则此时会合并失败,并报上面的错误。

解决方式:方法1:在两个Manifest.xml的application标签下添加tools:replace="android:label""(多个属性用,隔开,并且记住在manifest根标签上加入xmlns:tools="http://schemas.android.com/tools",否则会找不到namespace哦)

方法2:在build.gradle根标签上加上useOldManifestMerger true (懒人方法)

1.IDE internal error occurred

IDE internal error occurred

5a90ed8021d9?utm_campaign=maleskine&utm_content=note&utm_medium=seo_notes&utm_source=recommendation

The quickest option is to do a full reset to factory settings;--重置手机

Classify the mobile device to the service, but it is unknown whether a similar case the guarantee;--移动设备服务分类

Reflash the firmware on the cyanogen;--刷新固件

Perhaps your phone is infected by a virus. Install antivirus can be free, there is no difference between the paid Antivirus Kaspersky free AVG, the main not install several anti-virus applications immediately begin between conflict and the problem is not solved, there will be a further problem. And be sure to update your anti-virus database.--可能中毒

解决:关闭网络即可。

3.问题:Instant Run requires ‘Tools | Android | Enable ADB integration’ to be enable

解决:如下图所示,勾选Enable ADB integration 就OK了

5a90ed8021d9?utm_campaign=maleskine&utm_content=note&utm_medium=seo_notes&utm_source=recommendation

解决:我是发生在我做页面数据返回时出现的问题,结果我删除了log语句即可。

5.bulid project出现的错误 Error: Theelement must be a direct child of theroot element [WrongManifestParent]

位置及重复。权限清单文件。

6.运行程序时:Session 'app': Error Installing APKs

解决方法:重启模拟器,clean工程,关闭其他模拟器。

7.buli过程:Error:Error converting bytecode to dex:

Cause: com.android.dex.DexException: Multiple dex files define Lcom/qihoo/linker/logcollector/LogCollector;

8.xml输入提示有问题(未完成)

改成compileSdkVersion最新版本

更改build tools version, 改成和compileSdkVersion一个版本也无用.

解决方式:删除.idea文件夹和所有的.iml文件,然后重启as,重新build project

AS清除缓存重启IDE:http://jingyan.baidu.com/article/7e4409533f4c092fc0e2efde.html

关闭省电模式:http://blog.csdn.net/u012561510/article/details/53887901

参考:http://www.myexception.cn/android/2028356.html

9.R文件出错(未测试)

解决方式:http://blog.csdn.net/nugongahou110/article/details/46780379

检查是否编译了项目。Android studio有时候没有编译就会报出没有R文件的错误。

检查带代码中包名是否正确。有时候从其他地方复制代码过来时连带了包名,也会报出R文件找不到。

检查布局文件是否有语法错误。布局文件有语言错误时也会导致R文件错误。

软件抽风了,重建项目试试。

另外可能很多人不知道在哪儿找R文件,Android studio左上角有个选项,一般我们可能是选的Android模式,选择Packages模式找到你的项目,里面就可以看到R文件了

10.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值