• 使用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 改为当前你安装的版本,如果你懒得找,可以直接打开一个可以运行的项目,对着改过来就可以

     

  • 相关阅读:
    Servlet项目 创建方法
    1. 连接数据库
    Jsp application对象(全局变量)
    Jsp session属性、方法
    让python 3支持mysqldb的解决方法
    Python读写文件(进阶)
    python操作MongoDB
    使用Python Pandas处理亿级数据
    SurfingTheInternet
    matplotlib中日期显示(不显示为科学计数法)
  • 原文地址:https://www.cnblogs.com/mengjinluohua/p/4991034.html
Copyright © 2020-2023  润新知