zoukankan      html  css  js  c++  java
  • 使用androidstudio时遇到的一些小错误

    1 路径名字中不能有汉字  报如下错误:
    Error:(1, 0) Your project path contains non-ASCII characters. This will most likely
    cause the build to fail on Windows. Please move your project to a different
    directory. See http://b.android.com/95744 for details.

    ,如果有,改成英文字母;以前是eclipse项目的先将文件夹名字改成英语,再导入AS进行转换

     

    2

    AS出现Error:(1, 0) Plugin with id ‘com.android.application’ not found.

    1. 1

    在项目最外层的build.gradle文件加入如下代码刷新(try again):

    buildscript {     

         repositories {          

              mavenCentral()     

         }     

        dependencies {          

              classpath 'com.android.tools.build:gradle:1.2.3'     

         }

     } 

     allprojects {     

          repositories {          

              mavenCentral()     

          } 

    }

    3 错误  SSL peer shut down incorrectly

    这个问题通常出现在Android Studio更新失败的时候,或者你导入了别人的项目的时候,AS提示你下载一个什么gradle的东西,然后又下不下来。可以这样解决:Gradle version 和android plugin version 改为当前你安装的版本,如果你懒得找,可以直接打开一个可以运行的项目,对着改过来就可以

     

  • 相关阅读:
    DUILib的代码分析
    source$表坏块
    树莓派风扇自动控制随想
    给qq机器人加上bing搜索
    龙芯fedora28日常生存指南
    攻防世界 when_did_you_born
    部署PWN题Docker环境
    NPUCTF2020 EzRSA
    金融密码杯 The Art of War
    Machine Learning & Deep Learning Fundamentals
  • 原文地址:https://www.cnblogs.com/mengjinluohua/p/4991034.html
Copyright © 2011-2022 走看看