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

1.Validates resource references inside Android XML files

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

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.--可能中毒


2.问题:开机打开程序,提示:cannot load project: java.lang.NUllpointerException

解决:关闭网络即可。


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

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


4.How to fix “failed to make and chown /acct/uid_10083: Read-only file system” error?

解决:我是发生在我做页面数据返回时出现的问题,结果我删除了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.

更多相关文章

  1. Android文件图片上传的详细讲解(三)---模式回调类
  2. How to enable logging for apache commons HttpClient on Andro
  3. android读取SD卡下面所有的TXT文件名,listView显示出来。
  4. 安卓各文件存储路径汇总(Android(安卓)file path)
  5. android EditText 只能输入无法删除的解决方法
  6. android解析生成xml文件
  7. Android中保存Logcat信息到文件
  8. mybatisplus的坑 insert标签insert into select无参数问题的解决
  9. NPM 和webpack 的基础使用

随机推荐

  1. 开发者必看|Android(安卓)8.0 新特性及开
  2. Android(安卓)NDK开发(四) 将FFmpeg移植到A
  3. Android账号管理机制
  4. Android布局优化之merge(二)
  5. Android中listview的一些样式设置
  6. Android上替代SQLite的选择:Realm
  7. Android性能:内存篇之内存优化
  8. 最强 Android(安卓)Studio 使用小技巧和
  9. mac开发android 安卓真机调试解决方案
  10. 移动5年 Android生态系统的演进