Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

插件没有继承PluginAppCompatActivity #130

Closed
Hiram-Y opened this issue Jul 6, 2017 · 8 comments
Closed

插件没有继承PluginAppCompatActivity #130

Hiram-Y opened this issue Jul 6, 2017 · 8 comments

Comments

@Hiram-Y
Copy link

Hiram-Y commented Jul 6, 2017

You may also want to read our issue guide.

RePlugin version:2.1.2

Android compile SDK version:25

Android ROM:

image

如果插件中添加 me.tatarka:gradle-retrolambda不会替换activity

@aBenVip
Copy link

aBenVip commented Jul 7, 2017

@Hiram-Y 你好,你这个继承关系实在那儿看的呢?gradle吗?

@Hiram-Y
Copy link
Author

Hiram-Y commented Jul 7, 2017

@aBenVip AS3.0以上自带了这个功能,能直接查看apk的class ,我也用log的方式打出来,getSuperclass().getSimpleName(),也是继承的AppCompateActivity

@jiongxuan
Copy link
Contributor

您好,请您先使用RePlugin 2.1.4版本试试(解决了Instant Run的问题)。

如果仍有问题,可以把您的Gradle日志上传上来,同时,也请附上您的插件根目录的build.gradle文件,这样我们可以进一步看看。

@jiongxuan jiongxuan added bug and removed bug labels Jul 9, 2017
@zzz40500
Copy link
Contributor

这个问题, 应该是RxAppCompatActivity 所在class.jar 不存在项目目录结构下导致的,从日志上看gradle 多次设置RxAppCompatActivity 为PluginAppCompatActivity, 这是因为

  ctCls.writeFile(CommonData.getClassPath(ctCls.name))

这个CommonData.getClassPath(ctCls.name)返回为空, 无法写入导致的.
总体就是 #166 的表现

@Hiram-Y
Copy link
Author

Hiram-Y commented Jul 11, 2017

@jiongxuan @zzz40500 https://github.com/Hiram-Y/TestRePlugin 这个是demo 还是没有替换插件的Activity

@jiongxuan
Copy link
Contributor

@zzz40500 太赞了!非常感谢!

我们今天会发出2.1.5版本,将 @zzz40500 大神的改动体现出来。届时您可以看看效果 @Hiram-Y

@Hiram-Y
Copy link
Author

Hiram-Y commented Jul 14, 2017

@jiongxuan 好的,持续关注中

@Hiram-Y
Copy link
Author

Hiram-Y commented Jul 14, 2017

@jiongxuan @zzz40500 2.1.5版本已经测试成功,没问题了,多谢了!

@Hiram-Y Hiram-Y closed this as completed Jul 14, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants