- 博客(4)
- 收藏
- 关注
原创 NoClassDefFoundError
Android 5.0以下出现 java.lang.NoClassDefFoundError兼容Android 5.0以下机型的方法: //1.defaultConfig --> multiDexEnabledtrue 设为true //2.dependencies --> 导入第三方依赖库 compile 'com.android.suppo
2017-03-23 16:50:02 311
原创 android studio关联genymotion模拟器
前提:先安装了genymotion 官网下载地址:https://www.genymotion.com/ 注册一个账号,再下载安装,默认安装,记住自己安装的目录1.打开android studio,file->setting2.plugins->browse repositories,从网络上下载插件。在搜索栏输入genymotion,然后选中,点击旁边的install Plug
2017-05-09 17:15:29 472
原创 一个TextView 设置两种字体颜色和大小
String currentIncome="100";String s="\t元";String str=currentIncome+s;SpannableStringBuilder sp = new SpannableStringBuilder(str); //字体颜色 sp.setSpan(new ForegroundColorSpan(0xFFFF0000), name.
2017-04-06 17:19:19 472
原创 Android Studio中build.gradle详解
之前一直都是在用eclipse,很多毛病都没改过来,所有今天特意总结一下Studio下的build.gradle,不对之处敬请发表apply plugin: 'com.android.application' //这表示此module是一个可运行的应用程序,可以直接run的//apply plugin: 'com.android.library'//这表示此module是一个安卓依
2017-03-24 11:17:28 514
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人