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

android studio 遇到的问题汇总_第1张图片

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了

android studio 遇到的问题汇总_第2张图片

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过滤隐藏文件FileFilter
  2. android studio 3.6.1导入项目报错(无法下载classpath里的内容)
  3. android读取SD卡下面所有的TXT文件名,listView显示出来。
  4. 安卓各文件存储路径汇总(Android file path)
  5. Android studio升级3.0.1之后原项目签名打包出错
  6. Android中保存Logcat信息到文件
  7. android解析生成xml文件
  8. Android 存储文件数据与读出文件数据
  9. 可以下载Android 源代码的repo源文件

随机推荐

  1. 【Android】android开发---实现屏幕旋转
  2. Android中onInterceptTouchEvent与onTouc
  3. Android手机客户端与Servlet交换数据(by
  4. Android(安卓)开发优化 知识点
  5. Android上面的百度地图使用步骤
  6. 搭建 Android(安卓)X86 系统,替代AVD模拟
  7. Android(安卓)NDK调试方式之一: adb logca
  8. picasso_强大的Android图片下载缓存库
  9. Android(安卓)GestureDetector手势识别类
  10. Android调用测试