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

编译demo错误 #17

Closed
h45251880 opened this issue Jan 16, 2020 · 5 comments
Closed

编译demo错误 #17

h45251880 opened this issue Jan 16, 2020 · 5 comments

Comments

@h45251880
Copy link

C:\Users\Administrator\Desktop\0\dcc>python dcc.py tests/demo-java/app/build/out
puts/apk/debug/app-debug.apk --source-dir=tests/demo-c/app/src/main/ --no-build
Traceback (most recent call last):
File "dcc.py", line 14, in
from androguard.core.analysis import analysis
File "C:\Users\Administrator\Desktop\0\dcc\androguard\core\analysis\analysis.p
y", line 8, in
from androguard.core.bytecodes import dvm
File "C:\Users\Administrator\Desktop\0\dcc\androguard\core\bytecodes\dvm.py",
line 8, in
from androguard.core.bytecodes.apk import APK
File "C:\Users\Administrator\Desktop\0\dcc\androguard\core\bytecodes\apk.py",
line 7, in
from androguard.util import read, get_certificate_name_string
File "C:\Users\Administrator\Desktop\0\dcc\androguard\util.py", line 1, in
import asn1crypto
ModuleNotFoundError: No module named 'asn1crypto'

@amimo
Copy link
Owner

amimo commented Jan 16, 2020

大哥,我觉得你可以再仔细看下工程首页,安装那步.

  • 安装项目依赖
cd dcc
pip3 install -r requirements.txt
wget -O tools/apktool.jar https://bitbucket.org/iBotPeaches/apktool/downloads/apktool_2.4.0.jar

@h45251880
Copy link
Author

我都有装啊 一样的问题

@amimo
Copy link
Owner

amimo commented Jan 16, 2020

进入到dcc目录,用这条命令试试

python -m pip install -r requirements.txt

安装好依赖后重新执行加固命令.
还不行的话,你安装个pycharm社区版,ide会提示你把依赖装上,跑通了之后再来研究这个问题.

@h45251880
Copy link
Author

额 一开启没有提示我安装依赖阿.

@h45251880
Copy link
Author

解决了要装VC

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