QQ登录 账号密码登陆 官网首页

导入Android studio常见问题汇总

  • Please configure Android SDK

    在确保AS正常配置SDK路径后还提示这问题的情况下, 出现这问题的原因是导入AS的Modue没配置好SDK.

    配置步骤如下:


    菜单栏: ; File -> Project Structure 的弹出对话框中左边Modue列表选中

    "soubaoShopMobile" 在右边的Properties中选择

    "Compile Sdk Version"和 "Build Tools Version"选项

  



  • Error:Grale version 2.10 is required. Current version is 2.8. if Using the gradlewrapper try editing

  问题分析: AS正在使用的版本与导入AS的";soubaoShopMobile"; 使用的Grale 版本不一致

  解决办法:

  File --> Project Structure --> Project 


  • Plugin with id ';android-apt'  not found

  • 问题: 这是androidannotations库依赖的android-apt没找到

    解决办法: 在soubaoShopMobile module下的build.gradle的dependencies
    节点添加 ;compile ';com.neenbedankt.gradle.plugins:android-apt:1.4';


  • Gradle DSL method not found ';android()';

  

  • 解决办法参考 :http://stackoverflow.com/questions/27735646/android-studio-gradle-dsl-method-not-found-android-error17-0


  • 类似

    Could not find com.Android.support:appcompat-v7:21.1.2.

    Could not find com.android.support:design:21.1.2.

    在Android SDK目录下找到下面目录:

    extras\android\m2repository\com\android\support 






  • 打开对应的文件夹, 在gradle中写上存在的版本号

    参考解决办法:stackoverflow.com


  • other