• Android Studio 2.3.3上引入3.0上开发的项目遇到的问题


    dependencies {
        implementation fileTree(dir: 'libs', include: ['*.jar'])
        debugImplementation project(':pandora-core')
        releaseImplementation project(':pandora-no-op')
    
    
         implementation "com.android.support:appcompat-v7:${versions.SUPPORT_LIB}"
         implementation "android.arch.persistence.room:runtime:1.1.1-rc1"
         annotationProcessor "android.arch.persistence.room:compiler:1.1.1-rc1"
    
    
         api "com.squareup.retrofit2:retrofit:2.2.0"
         api "com.squareup.retrofit2:converter-gson:2.2.0"
      }

    开始对“implementation ” "api"看着觉得特别奇怪。翻到了一篇博客:

    https://blog.csdn.net/soslinken/article/details/73114637

    别人2017年06月12日 15:44:29
    写的帖子,我2018年7月17号才看到。。是被别人落下了一年哈

    之前曾将自己的Android Studio升级到3.0的版本,但是运行项目存在问题,就有还原回了2.3.3

    今天从鸿洋推荐的开发工具上面看到了推荐的开源工具https://github.com/whataa/pandora下载下来,发现其代码是在3.0版本上运行的遇到下面问题:

    Error:Cause: buildToolsVersion is not specified.

    百度后:附上原文链接:https://blog.csdn.net/yyongchao/article/details/78889846

    新装的Android studio 3.0.1正式版本。出现如标题错误; 
    原因是没有 
    build.gradle中没有buildToolsVersion 
    解决方案:在build.gradle中添加: 
    buildToolsVersion “25.0.3”

    后来添加上自己的对应的buildToolsVersion 就可以了。

  • 相关阅读:
    mvc edmx 的config文件
    Openwrt安装软件的方法
    如何用JQuery实现单元格 循环变背景色
    Vue的生命周期
    hmtl弹出框样式
    在星巴克买咖啡思考技术团队的管理
    RealTimePerformanceDemoView
    《SAAS创业指南》拆书笔记——产品打磨和商业模式初步验证
    基于日志的回放对比系统设计
    异常测试-中间件故障演练
  • 原文地址:https://www.cnblogs.com/liyanli-mu640065/p/9323997.html
Copyright © 2020-2023  润新知