黄油刀的使用(andriod x)

只需在APP目录下build.gradle文件中添加黄油刀的配置即可

1.添加如下语句:
compileOptions {

}

android {compileSdkVersion 29compileOptions {sourceCompatibility JavaVersion.VERSION_1_8targetCompatibility JavaVersion.VERSION_1_8}buildToolsVersion "29.0.2"

2.在dependencies中添加 //黄油刀配置

dependencies {implementation fileTree(dir: 'libs', include: ['*.jar'])implementation 'androidx.appcompat:appcompat:1.1.0'implementation 'androidx.constraintlayout:constraintlayout:1.1.3'testImplementation 'junit:junit:4.12'androidTestImplementation 'androidx.test.ext:junit:1.1.1'androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
//黄油刀配置implementation 'com.jakewharton:butterknife:10.1.0'annotationProcessor 'com.jakewharton:butterknife-compiler:10.1.0'
}

黄油刀的使用(andriod x)相关推荐

  1. 获取 Andriod keystore签名证书文件,用于打包APP应用

    每个安卓APP,都要签名证书才能安装在手机上,测试的应用有测试的签名证书,生产环境有生产环境的签名证书,在开发APP之前,我们首先生成一个用于该APP的签名证书,用于测试调试应用,像微信支付.分享.地 ...

  2. Mono for Andriod学习与实践(1)— 初体验

    对于Andriod的开发者来说,相信Java语言是第一选择,可是对于.Net开发者来说,要想利用C#在Andriod平台上开发,Mono提供了相应的开发平台来实现,Mono for Andriod就是 ...

  3. andriod studio中的显式跳转和隐式跳转

    比如要从A----->B 1.显式跳转 在A的activity中的匿名内部类(这里用匿名内部类)中的写如下代码: Intent intent = new Intent(this, BActivi ...

  4. 【转】:Andriod开发环境搭建 (1)

    1)l零基础快速教程: http://www.cnblogs.com/skynet/archive/2010/04/12/1709892.html -------------------------- ...

  5. android 添加日程失败,Andriod向系统日历添加日程

    Andriod向系统日历添加日程 1.检查是否有现有的账户存在 private static int checkCalendarAccount(Context context) { Cursor us ...

  6. Andriod Studio 解决问题 Failed to resolve: com.android.support:appcompat-v7:28.+

    Andriod Studio 解决问题 Failed to resolve: com.android.support:appcompat-v7:28.+ 参考文章: (1)Andriod Studio ...

  7. Andriod anim rotate中的属性介绍

    RotateAnimation是Andriod中的补间(Tween)动画中的旋转动画 使用时,需要在res下新建Android Resource Directtory,并选择anim(如已存在就不需要 ...

  8. Andriod anim scale中的属性介绍以及Animation类的属性

    ScaleAnimation是Andriod中的补间(Tween)动画中的大小缩放的动画 使用时,需要在res下新建Android Resource Directtory,并选择anim(如已存在就不 ...

  9. Andriod anim alpha中的属性介绍

    AlphaAnimation是Andriod中的补间(Tween)动画中的透明度改变的动画 使用时,需要在res下新建Android Resource Directtory,并选择anim.在anim ...

最新文章

  1. android自定义view获取控件,android 自定义控件View在Activity中使用findByViewId得到结果为null...
  2. Confluence 6 有关空间的一些提示
  3. linux 内核编译详解
  4. vue html2canvas用法,vue中html2canvas的使用(地图截图)
  5. idea中git打tag(亲测)
  6. Python编程专属骚技巧3
  7. 3分钟融云Demo体验:IM即时通讯篇
  8. [译] Vue: scoped 样式与 CSS Module 对比
  9. 历史上的甲子年灾难有哪些?
  10. 项目经理必备的8种能力,最后一个90%的PM都认同!
  11. android 视频画面切割,安卓手机如何剪裁视频 手机视频裁剪多余部分
  12. 网络安全-利用sniffer抓包软件,分析IP头的结构(详解)
  13. 计算机桌面整洁,想让你的桌面变得整洁干净,这几款桌面整理软件别错过
  14. AppCan学习笔记(2)-UI控件
  15. 编程,初来乍到,多多关照。
  16. 目标决定人生——没有目标就失去一切!
  17. wow7.1 xd 新手教程
  18. 【Git】Git入门
  19. JSD-2204-API-线程并发-集合-Day08
  20. php图片生成邀请函,科学网—如何制作邀请函 - 樊晓英的博文

热门文章

  1. 蓝桥杯单片机学习必备资源
  2. 大数据项目3(数据规约)
  3. ANSYS apdl命令流笔记13-------路径的定义与显示
  4. .Net Framework 3.5 SP1 fails with 8000FFFF
  5. Android驱动入门-Led控制+app+ndk库+底层驱动
  6. Docker----可视化化工具humpback
  7. 验证码 html 自动验证码,15分钟搞定自动识别网站验证码
  8. 网站验证码WEB前端接入实例
  9. web前端后端的连接:Servlet简单演示
  10. (前端)vue3提升工作效率的好用插件