ModularizationProject icon indicating copy to clipboard operation
ModularizationProject copied to clipboard

怎么运行单个模块呢?运行某个activity 的时候会需要选择一个module,只有app 可以选

Open monkeycraps opened this issue 8 years ago • 3 comments

怎么运行单个模块呢?运行某个activity 的时候会需要选择一个module,只有app 可以选

monkeycraps avatar Nov 03 '17 14:11 monkeycraps

直接修改isBuildModule=false 为true,注释掉对应Activity中注解代码,不然会报空指针

aqiuzzt avatar Nov 06 '17 09:11 aqiuzzt

`Error:Execution failed for task ':NewHouseModule:processDebugManifest'.

Manifest merger failed : Attribute application@label value=(@string/new_house_app_name) from AndroidManifest.xml:8:9-51 is also present at [com.github.BaronZ88:Retrofit2-FastJson-Converter:1.2] AndroidManifest.xml:13:9-41 value=(@string/app_name). Suggestion: add 'tools:replace="android:label"' to element at AndroidManifest.xml:5:5-20:19 to override.`

manifest 资源合并冲突

monkeycraps avatar Nov 06 '17 15:11 monkeycraps

最后注释掉分module 的 @label 该行,能执行正常

monkeycraps avatar Nov 06 '17 15:11 monkeycraps