zoukankan      html  css  js  c++  java
  • This version of android studio is incompatible with the gradle version used.Try disabling the instant run解决办法

    今天打开android studio又碰到一个奇怪的问题:This version of android studio is incompatible with the gradle version used.Try disabling the instant run
    android studio和gradle版本不匹配,我的android studio刚更新完没多久,应该就是gradle的问题。
    果然在stackoverflow上找到了答案:

    You can use normal build run rather than instant run
    
    Check first
    
    Settings/Preferneces > Build, Execution, Deployment option > Instant Run and uncheck all the three boxes.
    
    STEP1 (Upgrading gradle services url): Project > Gradle > Wrapper > gradle-wrapper.properties
    
    changed url of
    
    distributionUrl=https://services.gradle.org/distributions/gradle-2.10-all.zip
    
    to
    
    distributionUrl=https://services.gradle.org/distributions/gradle-2.11-all.zip
    
    STEP 2 (Delete you build folder in project):
    
    When you run project, build folder will be crated automatically
    
    STEP 3:
    
    Go to BUILD option in menu> Clean the project, Build the project
    
    It should work without instant run
    

      在这里面这里:distributionUrl=https://services.gradle.org/distributions/gradle-2.11-all.zip     //这是以前的版本,最新的参考这里:http://services.gradle.org/distributions

    我设置成gradle-2.11-all还是出错,设置成最新的就好啦。。。。。

     

  • 相关阅读:
    k8s之创建etcd集群
    完美解决微信video视频隐藏控件和内联播放问题
    JS工具库封装:Video转换成Canvas
    H5 video 标签 播放事件
    iSlider 如丝般高性能H5全屏滑动组件
    设计模式之 适配器模式
    c++ STL常用算法使用方法
    快速排序与二分查找
    CLOSE_WAIT TIME_WAIT
    erlang erl文件编译的三种脚本
  • 原文地址:https://www.cnblogs.com/jycboy/p/5700221.html
Copyright © 2011-2022 走看看