MVPArms icon indicating copy to clipboard operation
MVPArms copied to clipboard

基于arms开发的项目 变换成依赖

Open greadking opened this issue 5 years ago • 1 comments

Look at here

  • → Did you conform to the Rules?
  • → Did you read the Wiki Carefully?
  • → Did you search in Google?
  • → Did you search in openned&closed Issues?
  • Receive only bugs and suggestions

Environment

  • [x] MVPArms Version:
  • [x] AndroidStudio Version:
  • [x] Gradle Plugin Version:
  • [x] Target Android Version:
  • [x] Device Model:

Bug Description:

因为需要将项目改成moudle 供另一个应用 调用,因为调用方的框架不明确所以 没有使用您的组件化方案,经过修改已经可以编译通过但是运行时还是会报di生成的文件找不到 实际上 已经生成了,

Related Code:

  

Bug Log:

FAILURE: Build failed with an exception.
StandardAddressAddAlertActivity.java:30: 错误: 找不到符号
import com.weique.overhaul.v2.di.component.DaggerAddressAddAlertComponent;
* What went wrong:
Execution failed for task ':zongzhi:compileDebugJavaWithJavac'.
> java.lang.RuntimeException: ARouter::Compiler >>> No module name, for more information, look at gradle log.


### Others:

greadking avatar May 15 '20 01:05 greadking

建议使用框架的代码模板生成 dagger 代码,dagger的代码生成和你的业务代码有关,很难能通过只言片语,就能给你解答清楚,但是代码只要没问题,规则是对的,那肯定是不会有问题的

JessYanCoding avatar May 15 '20 07:05 JessYanCoding