We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
filter.txt 如下:
!<clinit|init>
!bigGoto #.TestCompiler. !.Util !./Lambda .Activity.
.;onCreate(Landroid/os/Bundle;.
#.* 我是想把我所有的包含Activity的类中的方法都加固,奈何总是有这种错误 报错信息如下: make: *** No rule to make target 'jni/nc/Java_com_xk_ssan_zuty_module_share_ui_dialog_GoodShareMainPicDialog_createDialog__Landroid_app_Activity_2Ljava_util_List_2Lcom_xk_ssan_zuty_module_share_util_SharePainter_2JILjava_lang_String_2.cpp', needed by 'obj/local/armeabi-v7a/objs/nc/nc/Java_com_xk_ssan_zuty_module_share_ui_dialog_GoodShareMainPicDialog_createDialog__Landroid_app_Activity_2Ljava_util_List_2Lcom_xk_ssan_zuty_module_share_util_SharePainter_2JILjava_lang_String_2.o'. Stop. make: *** Waiting for unfinished jobs.... [ERROR ] dcc: Compile .\4.6.0.0-mg_debug.apk failed! Traceback (most recent call last): File "dcc.py", line 453, in dcc_main(infile, filtercfg, outapk, do_compile, project_dir, source_archive) File "dcc.py", line 402, in dcc_main build_project(project_dir) File "dcc.py", line 88, in build_project subprocess.check_call([NDKBUILD, '-j%d' % cpu_count(), '-C', project_dir]) File "C:\Users\MG\AppData\Local\Programs\Python\Python38\lib\subprocess.py", line 364, in check_call raise CalledProcessError(retcode, cmd) subprocess.CalledProcessError: Command '['D:/sdk/sdk/ndk/21.0.6113669\ndk-build.cmd', '-j4', '-C', 'C:\Users\MG\AppData\Local\Temp\dcc-project-ckszrydl']' returned non-zero exit status 2. [INFO ] dcc: removing C:\Users\MG\AppData\Local\Temp\dcc-project-ckszrydl [INFO ] dcc: removing C:\Users\MG\AppData\Local\Temp\tmpj0cq2jis-dcc PS D:\Android_project\dcc\dcc>
The text was updated successfully, but these errors were encountered:
!bigGoto #.TestCompiler. !.*Util* !.*Lambda* .*Activity.*
.*;onCreate(Landroid/os/Bundle;.*
#.*
Sorry, something went wrong.
我猜测可能是文件名太长了.
感谢大佬回复,生成的文件名由包名,类名,方法名,参数组成组成。其他还好,不过方法的参数一搞就有五六个,那这种情况是要手动过滤掉这种方法不加固吗
我在windows遇到这样的问题,换linux解决了。
No branches or pull requests
filter.txt 如下:
do not compile constructor
!<clinit|init>
test demo
!bigGoto
#.TestCompiler.
!.Util
!./Lambda
.Activity.
compile method named onCreate, mostly activity's onCreate
.;onCreate(Landroid/os/Bundle;.
compile all method, use to test compiler
#.*
我是想把我所有的包含Activity的类中的方法都加固,奈何总是有这种错误
报错信息如下:
make: *** No rule to make target 'jni/nc/Java_com_xk_ssan_zuty_module_share_ui_dialog_GoodShareMainPicDialog_createDialog__Landroid_app_Activity_2Ljava_util_List_2Lcom_xk_ssan_zuty_module_share_util_SharePainter_2JILjava_lang_String_2.cpp', needed by 'obj/local/armeabi-v7a/objs/nc/nc/Java_com_xk_ssan_zuty_module_share_ui_dialog_GoodShareMainPicDialog_createDialog__Landroid_app_Activity_2Ljava_util_List_2Lcom_xk_ssan_zuty_module_share_util_SharePainter_2JILjava_lang_String_2.o'. Stop.
make: *** Waiting for unfinished jobs....
[ERROR ] dcc: Compile .\4.6.0.0-mg_debug.apk failed!
Traceback (most recent call last):
File "dcc.py", line 453, in
dcc_main(infile, filtercfg, outapk, do_compile, project_dir, source_archive)
File "dcc.py", line 402, in dcc_main
build_project(project_dir)
File "dcc.py", line 88, in build_project
subprocess.check_call([NDKBUILD, '-j%d' % cpu_count(), '-C', project_dir])
File "C:\Users\MG\AppData\Local\Programs\Python\Python38\lib\subprocess.py", line 364, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['D:/sdk/sdk/ndk/21.0.6113669\ndk-build.cmd', '-j4', '-C', 'C:\Users\MG\AppData\Local\Temp\dcc-project-ckszrydl']' returned non-zero exit status 2.
[INFO ] dcc: removing C:\Users\MG\AppData\Local\Temp\dcc-project-ckszrydl
[INFO ] dcc: removing C:\Users\MG\AppData\Local\Temp\tmpj0cq2jis-dcc
PS D:\Android_project\dcc\dcc>
The text was updated successfully, but these errors were encountered: