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时遇见SyntaxError:invalid syntax错误 #32

Open
SuperBigMango opened this issue Jun 17, 2020 · 2 comments
Open

测试demo时遇见SyntaxError:invalid syntax错误 #32

SuperBigMango opened this issue Jun 17, 2020 · 2 comments

Comments

@SuperBigMango
Copy link

SuperBigMango commented Jun 17, 2020

在配置完SDK,JDK和NDK的环境之后进行测试demo,编译demo-java
cd tests/demo-java
./gradlew assembleDebug成功
下一步将dex编译到c生成c代码输出到demo-c的/src/main目录下出错
python3 dcc.py tests/demo-java/app/build/outputs/apk/debug/app-debug.apk --source-dir=tests/demo-c/app/src/main/ --no-build
Traceback( most recent call last):
File "dcc.py",line 18,in
from dex2c.compiler import Dex2C
File "/home/dev/dcc/dex2c/compiler.py",line 27,in
from dex2c.basic_blocks import fill_node_from_block
File "home/dev/dcc/dex2c/basic_blocks.py",line 22,in
from dex2c.instruction import MoveResultExpression
File "home/dev/dcc/dex2c/instruction.py",line 299
self.value: Value = None

SyntaxError:invalid syntax
self.value后面的冒号显示SyntaxError

@amimo
Copy link
Owner

amimo commented Jun 17, 2020

你用python3.6试试

@SuperBigMango
Copy link
Author

谢谢大佬!

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