butterknife 或者fragmentation 整合问题

来源:4-2 单Activity界面架构验证

码_致远

2017-08-01


项目没有运行不报错,但是没有显示fragment 相对应的视图

把视图放到onCreaty()方法中 能正常显示

dependencies {
   compile fileTree(include: ['*.jar'], dir: 'libs')
   androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
       exclude group: 'com.android.support', module: 'support-annotations'
   })
   compile 'com.android.support:appcompat-v7:24.2.1'
   //compile 'com.android.support:appcompat-v7:25.3.0'
   compile 'com.android.support.constraint:constraint-layout:1.0.2'
   testCompile 'junit:junit:4.12'
   compile project(':latte-annotations')
   //字体图标
   compile 'com.joanzapata.iconify:android-iconify-ionicons:2.2.2'
   compile 'com.joanzapata.iconify:android-iconify-fontawesome:2.2.2'

   // Fragment依赖
   compile 'me.yokeyword:fragmentation:1.0.9'
   compile 'me.yokeyword:fragmentation-swipeback:1.0.9'
   //butterKnife依赖
   //compile 'com.jakewharton:butterknife:8.7.0'
   //annotationProcessor 'com.jakewharton:butterknife-compiler:8.7.0'
   compile 'com.jakewharton:butterknife:8.5.1'
   annotationProcessor 'com.jakewharton:butterknife-compiler:8.5.1'

}

 compile 'com.android.support:appcompat-v7:24.2.1'

上边这项依赖标红线 提示存在25.3.0版本









写回答

1回答

傅猿猿

2017-08-01

具体群里或者QQ发我,帮你看看

0
6
科大云炬
老师,咱们的QQ群多少,如何进群
2017-08-04
共6条回复

Android通用框架设计与完整电商App开发

从第一行代码开始教你,通用且一键式配置的框架设计并轻松实现完整电商App

2028 学习 · 1182 问题

查看课程