• 代码猩球
    2019-02-11
    文章内容丰富,里面各种链接都值得研读一下,👍
    
     4
  • wizrdev
    2019-10-07
    在mac上搞了两天redex,执行autoreconf -ivf && ./configure && make -j4一直编译不同过,在linux上编译就很顺利,在mac上一直报下面的错误
    autoreconf: Entering directory `.'
    autoreconf: configure.ac: not using Gettext
    autoreconf: running: aclocal --force -I m4
    autoreconf: configure.ac: tracing
    autoreconf: running: glibtoolize --copy --force
    glibtoolize: putting auxiliary files in '.'.
    glibtoolize: copying file './ltmain.sh'
    glibtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'm4'.
    glibtoolize: copying file 'm4/libtool.m4'
    glibtoolize: copying file 'm4/ltoptions.m4'
    glibtoolize: copying file 'm4/ltsugar.m4'
    glibtoolize: copying file 'm4/ltversion.m4'
    glibtoolize: copying file 'm4/lt~obsolete.m4'
    autoreconf: running: /usr/local/Cellar/autoconf/2.69/bin/autoconf --force
    autoreconf: configure.ac: not using Autoheader
    autoreconf: running: automake --add-missing --copy --force-missing
    configure.ac:6: warning: AM_INIT_AUTOMAKE: two- and three-arguments forms are deprecated. For more info, see:
    configure.ac:6: https://www.gnu.org/software/automake/manual/automake.html#Modernize-AM_005fINIT_005fAUTOMAKE-invocation
    configure.ac:14: installing './compile'
    configure.ac:6: installing './missing'
    Makefile.am: installing './depcomp'
    autoreconf: Leaving directory `.'
    checking for a BSD-compatible install... /usr/bin/install -c
    checking whether build environment is sane... yes
    checking for a thread-safe mkdir -p... ./install-sh -c -d
    checking for gawk... no
    checking for mawk... no
    checking for nawk... no
    checking for awk... awk
    checking whether make sets $(MAKE)... yes
    checking whether make supports nested variables... yes
    checking for g++... g++
    checking whether the C++ compiler works... no
    configure: error: in `/Users/funaihui/AndroidStudioProjects/redex':
    configure: error: C++ compiler cannot create executables
    See `config.log' for more details
    有什么解决的方法吗?
    展开
     1
     1
  • Geek_a8c19d
    2019-09-23
    Sample里的Release包dex重排优化后APK变大
    redex --sign -s ReDexSample/keystore/debug.keystore -a androiddebugkey -p android -c redex-test/interdex.config -P ReDexSample/proguard-rules.pro -o redex-test/interdex_output-release.apk ReDexSample/build/outputs/apk/release/ReDexSample-release.apk

    作者回复: 重排并不是为了减少size,不过可以diff一下是哪一块变大了。会不会只是压缩率的问题

    
     1
  • Dimple
    2019-05-11
    FaceBook之所以这么强大,不仅仅是因为社交的地位,还有对开源世界的影响,对软件发展的贡献
    
     1
  • 詹伟
    2019-09-04
    动态库压缩,动态库拷贝成功后才有戏,如果拷贝失败了怎么破,apk内直接读是不能压缩的

    作者回复: 只能删除一些缓存文件,或者提示用户清理空间了

    
    
  • nb Ack
    2019-08-02
    老师您好。我想问一下减少 apk 体积是不是可以通过配置
     ndk {
                abiFilters 'armeabi-v7a'
            }
    减少打出的 so 文件。听说微信就是这样的?这会有什么问题吗?

    作者回复: 在国内为了减少安装包体积,一般都是单abi的,不仅仅是微信

     1
    
  • 坚持远方
    2019-06-06
    去除debugInfo一直报错。
    Traceback (most recent call last):
      File "/tmp/redex.Nv400q/redex.py", line 785, in <module>
        run_redex(args)
      File "/tmp/redex.Nv400q/redex.py", line 762, in run_redex
        run_redex_binary(state)
      File "/tmp/redex.Nv400q/redex.py", line 224, in run_redex_binary
        'by running %(lldb_script_name)s') % script_filenames)
    RuntimeError: redex-all crashed with exit code -6! You can re-run it under gdb by running /tmp/redex.Nv400q/redex-gdb-1t87rU.sh or under lldb by running /tmp/redex.Nv400q/redex-lldb-xphU77.sh
    展开
     1
    
  • 天空
    2019-06-02
    项目用了small插件化,ApkChecker不能分析以so库的插件,怎么办?

    作者回复: 可能需要适配一下才行

    
    
  • joker°
    2019-05-07
    mess 还是在维护的~

    作者回复: 抱歉抱歉

    
    
  • 快乐奔跑
    2019-04-13
    还有个问题,Redex重分包的功能,如果我使用通过-printconfiguration "build/outputs/mapping/proguard-rules.pro"生成的合并之后的Proguard文件,会打印
    InterDexPass not run because no ProGuard configuration was provided的日志,但我实际上配置了Proguard文件啊

    作者回复: 需要拼到命令行中:
    redex -P proguard_rule.txt -c interdex.config boot-free-debug.apk -o redex.apk

    
    
  • 快乐奔跑
    2019-04-13
    试了下Redex重分包的功能,发现个问题,如果我使用通过-printconfiguration "build/outputs/mapping/proguard-rules.pro"生成的合并之后的Proguard文件,会打印
    InterDexPass not run because no ProGuard configuration was provided的日志,但我实际上配置了Proguard文件啊

    作者回复: 可以拼在命令行中:
    redex -P proguard_rule.txt -c interdex.config boot-free-debug.apk -o redex-uc.apk

    
    
  • elephant
    2019-03-05
    F家的方案总是让人不可思议,经常想大喊,你们至于么,方案搞得这么黑科技!!!以前看fresco和reactnative实现,请问我跪的标准么。😂

    作者回复: 对的,不过感觉他们玩的太飘了,可以参考但是不好全盘接受

    
    
  • Andy
    2019-02-13
    Facebook把dex放在assets下那么在首次启动解压后,如何执行dexopt?或者会不会执行该操作?

    作者回复: 不执行dexopt,直接通过oatmeal自己生成odex

    
    
  • Allen
    2019-02-09
    其实更好奇怎样在启动速度快的要求下 减少包体大小 还是这两者必须择一呢

    作者回复: 类似dex分包以及某些手段,是既能减少包体积又能提升启动速度。

    如果需要权衡的事情,我们要看自己的应用处于哪个阶段,目前更加严峻的是哪个问题

    
    
我们在线,来聊聊吧