AS 2.0 开启Instant Run出现的问题:Error:Access to the dex task is now impossible, starting with 1.4.0
来源:互联网 发布:零基础入门学python 编辑:程序博客网 时间:2024/06/06 06:48
转自: http://blog.csdn.net/qq_23191031/article/details/50582691
使用Android Studio 2.0 引入老项目时,在开启Instant Run时候会出现这样的问题:
这个问题困扰了我好久,终于有了答案。
对于使用 gradle 2.2.1至2.9 版本的项目是无法使用Instant Run的,原因在于 Instant Run 需要使用 2.0.0的 Android Gradle Plugin:(现在2.0.0还是 alpaha 版)
但是,Android Gradle Plugin 从1.5.0开始就完全取消了Transform API,老项目还是使用了这个API,已至于项目更新后会报上文的错误。
详见官方文档(vpn)
而从官方文档得知,使用 2.0.0的Android Gradle Plugin版本是支持1.5.0 的Android Gradle Plugin版本地,而不支持1.3.1以下版本
Gradle官方文档(vpn)
换句话说就是目前为止只有使用的是 1.5.0 版本的项目才可以开启 Instant Run,而使用1.3.1及以下版本的项目与无法开启Instant Run
而官方也知道有这个问题,但是至今到没有找到解决问题的好办法。
官方给出的答复(vpn)
0 0
- AS 2.0 开启Instant Run出现的问题:Error:Access to the dex task is now impossible, starting with 1.4.0
- AS 2.0 开启Instant Run出现的问题:Error:Access to the dex task is now impossible, starting with 1.4.0
- Error:Access to the dex task is now impossible, starting with 1.4.0
- AS运行出现Error running app: This version of Android Studio is incompatible with the Gradle
- AS:Error running app: Instant Run requires 'Tools | Android | Enable ADB integration' to be enabled.
- AS:Error running app: Instant Run requires 'Tools | Android | Enable ADB integration' to be enabled.
- AS:Error running app: Instant Run requires 'Tools | Android | Enable ADB integration' to be enabled.
- 出现Access to the path : C:/... is denied 的解决方法
- System error &H80004015 - This class is configured to run as a security id different from the caller.
- android run as 出现 .. 的各种问题
- 关于部分小米手机使用Instant Run 的Installation failed with message Failed to establish session问题
- AS开发中出现Error(四)——Error:Error converting bytecode to dex: Cause: com.android.dex.DexException: Mult
- 关于access to the path is denied问题的解决
- 关于access to the path is denied问题的解决
- android studio2.0出现的gradle问题,instant Run即时运行不了.
- How to solve “add/remove operation is impossible, because the code element 'Cxxx' is read only” With
- 真机上测试出现问题:An error occurred while trying to run the script
- AS出现的错误: This version of Android Studio is incompatible with the Gradle Plugin used.
- zsh配置文件
- UIAlertController使用技巧
- struts2总结
- ubuntu下Android平台的libcurl的编译测试
- 编写自己的JDBC框架
- AS 2.0 开启Instant Run出现的问题:Error:Access to the dex task is now impossible, starting with 1.4.0
- Java 4(数组、方法)
- swift的基本语法
- LeetCode 320. Generalized Abbreviation(产生缩写)
- LeetCode 222. Count Complete Tree Nodes
- OBJ-C类方法概述学习笔记
- OBJ-C匿名对象和封装学习笔记
- Linux内核--内存管理
- 用std::pair做Unordered_map的key(C++)