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

覆盖顺序问题? #1

Open
70kg opened this issue Jul 14, 2017 · 0 comments
Open

覆盖顺序问题? #1

70kg opened this issue Jul 14, 2017 · 0 comments

Comments

@70kg
Copy link

70kg commented Jul 14, 2017

在readme中说后面的会覆盖前面的,在配图中,我理解是3会覆盖前面的1,2,也就是最终留下3,但是我看生成的classmap文件中的顺序是这样的。

/Users/guobinfen/AndroidStudioProjects/JavaOverlay/app/src/main/java/com/google/gson/Gson.java:com.google.gson.Gson
/Users/guobinfen/AndroidStudioProjects/JavaOverlay/app/src/main/java/me/ele/javaoverlay/JavaOverlay.java:me.ele.javaoverlay.JavaOverlay
/Users/guobinfen/AndroidStudioProjects/JavaOverlay/app/src/main/java/me/ele/javaoverlay/MainActivity.java:me.ele.javaoverlay.MainActivity
/Users/guobinfen/AndroidStudioProjects/JavaOverlay/app/src/debug/java/me/ele/javaoverlay/JavaOverlay.java:me.ele.javaoverlay.JavaOverlay
/Users/guobinfen/AndroidStudioProjects/JavaOverlay/app/src/dimDebug/java/me/ele/javaoverlay/JavaOverlay.java:me.ele.javaoverlay.JavaOverlay

console

[ JavaOverlay ]/Users/guobinfen/AndroidStudioProjects/JavaOverlay/app/src/main/java/me/ele/javaoverlay/JavaOverlay.java (remove)
[ JavaOverlay ]/Users/guobinfen/AndroidStudioProjects/JavaOverlay/app/src/debug/java/me/ele/javaoverlay/JavaOverlay.java (remove)

那岂不是最终会留下dimDebug包下面的JavaOverlay?而不是配图中的3,main下面的,我理解是不是有问题?

classpath 'com.android.tools.build:gradle:2.2.3'
gradle-2.14.1

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

1 participant