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回答
-
具体群里或者QQ发我,帮你看看
062017-08-04
相似问题