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

baseLib无法编译 #3

Open
chrissen0814 opened this issue Jul 4, 2018 · 3 comments
Open

baseLib无法编译 #3

chrissen0814 opened this issue Jul 4, 2018 · 3 comments

Comments

@chrissen0814
Copy link

baseLib包的build.gradle文件应该没有上传吧,编译的时候里面没有文件

@tome34
Copy link
Owner

tome34 commented Jul 4, 2018

已经重新上传,麻烦再试试.

@chrissen0814
Copy link
Author

好的

@chrissen0814
Copy link
Author

直接clone的话会报错:
Error:The modules ['baseLib', 'frameDemoMo2-baseLib'] point to the same directory in the file system.
Each module must have a unique path.
网上查了一下,解决的办法是把每个module里面的iml文件删除,猜测你应该没有在.gitignore文件里过滤掉。
删除以后在编译,又会报错:Error:java.util.concurrent.ExecutionException: com.android.tools.aapt2.Aapt2Exception: AAPT error: check logs for details
这个不知道问题出在哪,我解决的办法是把gradle.properities文件里面的android.enableAapt2=false
android.useDeprecatedNdk=true 两行删除,然后把gradle改为3.0.0
修改以后我这边就可以正常编译了,app也可以正常运行了。

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

2 participants