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

集成以后,App启动奔溃 #19

Open
dingbuoyi opened this issue May 13, 2019 · 12 comments
Open

集成以后,App启动奔溃 #19

dingbuoyi opened this issue May 13, 2019 · 12 comments

Comments

@dingbuoyi
Copy link

@dingbuoyi dingbuoyi commented May 13, 2019

崩溃信息:
java.lang.RuntimeException: Unable to create application com.xx.xx.MyApplication: org.greenrobot.greendao.DaoException: Could not init DAOConfig

@johnsonlee

This comment has been minimized.

Copy link
Collaborator

@johnsonlee johnsonlee commented May 13, 2019

在 classpath 中去掉 booster-transform-shrink 或者手动加上 ignores 规则,见 :https://github.com/didi/booster/tree/master/booster-transform-shrink

@dingbuoyi

This comment has been minimized.

Copy link
Author

@dingbuoyi dingbuoyi commented May 13, 2019

@johnsonlee 哇塞,回复的那么快,谢谢

@johnsonlee

This comment has been minimized.

Copy link
Collaborator

@johnsonlee johnsonlee commented May 13, 2019

下个版本考虑把 constants shrinking 去掉

@johnsonlee johnsonlee self-assigned this May 13, 2019
@johnsonlee johnsonlee added this to the booster-v0.4 milestone May 13, 2019
johnsonlee added a commit that referenced this issue May 13, 2019
@johnsonlee

This comment has been minimized.

Copy link
Collaborator

@johnsonlee johnsonlee commented May 14, 2019

Booster v0.3.2 is available

@muxi166

This comment has been minimized.

Copy link

@muxi166 muxi166 commented May 28, 2019

请问忽略assets,drawable等资源路径应该怎么配置

@johnsonlee

This comment has been minimized.

Copy link
Collaborator

@johnsonlee johnsonlee commented May 28, 2019

请问忽略assets,drawable等资源路径应该怎么配置

暂时还不支持配置,是有什么特定的需求吗?

@muxi166

This comment has been minimized.

Copy link

@muxi166 muxi166 commented May 28, 2019

请问忽略assets,drawable等资源路径应该怎么配置

暂时还不支持配置,是有什么特定的需求吗?

集成shrink后发现打包后把一些assets,drawable下资源删了

@johnsonlee

This comment has been minimized.

Copy link
Collaborator

@johnsonlee johnsonlee commented May 28, 2019

booster-transform-shrink 不会删资源文件,只会删除 R 文件,如果不想用 booster-transform-shrink,可以单独引入其它各个模块:

dependencies {
    classpath "com.didiglobal.booster:booster-gradle-plugin:$booster_version"
    classpath "com.didiglobal.booster:booster-task-all:$booster_version"
//    classpath "com.didiglobal.booster:booster-transform-all:$booster_version"
    classpath "com.didiglobal.booster:booster-transform-lint:$booster_version"
    classpath "com.didiglobal.booster:booster-transform-shared-preferences:$booster_version"
    classpath "com.didiglobal.booster:booster-transform-thread:$booster_version"
    classpath "com.didiglobal.booster:booster-transform-toast:$booster_version"
}
@muxi166

This comment has been minimized.

Copy link

@muxi166 muxi166 commented May 28, 2019

booster-transform-shrink 不会删资源文件,只会删除 R 文件,如果不想用 booster-transform-shrink,可以单独引入其它各个模块:

dependencies {
    classpath "com.didiglobal.booster:booster-gradle-plugin:$booster_version"
    classpath "com.didiglobal.booster:booster-task-all:$booster_version"
//    classpath "com.didiglobal.booster:booster-transform-all:$booster_version"
    classpath "com.didiglobal.booster:booster-transform-lint:$booster_version"
    classpath "com.didiglobal.booster:booster-transform-shared-preferences:$booster_version"
    classpath "com.didiglobal.booster:booster-transform-thread:$booster_version"
    classpath "com.didiglobal.booster:booster-transform-toast:$booster_version"
}

  那是在哪个模块删的呢, 单独引入transform确实还是被删了

@johnsonlee

This comment has been minimized.

Copy link
Collaborator

@johnsonlee johnsonlee commented May 28, 2019

booster-transform-shrink 不会删资源文件,只会删除 R 文件,如果不想用 booster-transform-shrink,可以单独引入其它各个模块:

dependencies {
    classpath "com.didiglobal.booster:booster-gradle-plugin:$booster_version"
    classpath "com.didiglobal.booster:booster-task-all:$booster_version"
//    classpath "com.didiglobal.booster:booster-transform-all:$booster_version"
    classpath "com.didiglobal.booster:booster-transform-lint:$booster_version"
    classpath "com.didiglobal.booster:booster-transform-shared-preferences:$booster_version"
    classpath "com.didiglobal.booster:booster-transform-thread:$booster_version"
    classpath "com.didiglobal.booster:booster-transform-toast:$booster_version"
}

  那是在哪个模块删的呢, 单独引入transform确实还是被删了

麻烦粘一下 booster-transform-shrink 生成的 report.txt 文件,在 build/reports 目录下

@muxi166

This comment has been minimized.

Copy link

@muxi166 muxi166 commented May 28, 2019

booster-transform-shrink 不会删资源文件,只会删除 R 文件,如果不想用 booster-transform-shrink,可以单独引入其它各个模块:

dependencies {
    classpath "com.didiglobal.booster:booster-gradle-plugin:$booster_version"
    classpath "com.didiglobal.booster:booster-task-all:$booster_version"
//    classpath "com.didiglobal.booster:booster-transform-all:$booster_version"
    classpath "com.didiglobal.booster:booster-transform-lint:$booster_version"
    classpath "com.didiglobal.booster:booster-transform-shared-preferences:$booster_version"
    classpath "com.didiglobal.booster:booster-transform-thread:$booster_version"
    classpath "com.didiglobal.booster:booster-transform-toast:$booster_version"
}

  那是在哪个模块删的呢, 单独引入transform确实还是被删了

麻烦粘一下 booster-transform-shrink 生成的 report.txt 文件,在 build/reports 目录下

抱歉,不方便

@johnsonlee

This comment has been minimized.

Copy link
Collaborator

@johnsonlee johnsonlee commented Sep 29, 2019

please try the latest version 0.23.0-SNAPSHOT or 0.23.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants
You can’t perform that action at this time.