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

Gradle crash #75

Open
tommyzat opened this issue Feb 14, 2020 · 8 comments
Open

Gradle crash #75

tommyzat opened this issue Feb 14, 2020 · 8 comments
Assignees
Labels
bug

Comments

@tommyzat
Copy link

@tommyzat tommyzat commented Feb 14, 2020

Gradle always crashes while using this obfuscator:
Gradle build daemon disappeared unexpectedly (it may have been killed or may have crashed)

@efraespada efraespada self-assigned this May 12, 2020
@efraespada
Copy link
Member

@efraespada efraespada commented May 12, 2020

Could you give me more information about the issue?

SC version, config used, log trace...

@AndroidDeveloperLB
Copy link

@AndroidDeveloperLB AndroidDeveloperLB commented Aug 10, 2020

@efraespada
I have the exact same issue. I followed all the steps on :
https://github.com/StringCare/AndroidLibrary/wiki/Implementation#library-setup
https://github.com/StringCare/AndroidLibrary/wiki/Configuration

And the version is '4.0.0'

In my case, the config is something like:

apply plugin: StringCare
stringcare {
    stringFiles = ['keys.xml']
    srcFolders = ['src/main', 'src/theOtherVariant']
}

About log trace, how do I put it?
If you want IDE log (after I closed it) , here:

idea.zip

@AndroidDeveloperLB
Copy link

@AndroidDeveloperLB AndroidDeveloperLB commented Aug 10, 2020

Here, got it on POC sample I've made some time ago, after trying to update it according to the new instructions:

2020-08-10_11-47-19.zip

MyApplication.zip

idea.zip

@AndroidDeveloperLB
Copy link

@AndroidDeveloperLB AndroidDeveloperLB commented Aug 11, 2020

@Panjkrc
Copy link

@Panjkrc Panjkrc commented Aug 31, 2020

I have the same issue

@efraespada efraespada added bug and removed help wanted labels Sep 1, 2020
@efraespada
Copy link
Member

@efraespada efraespada commented Sep 1, 2020

@AndroidDeveloperLB @Panjkrc I confirm you there was an error when the plugin starts the obfuscation. I will release a new version as soon as possible.

Gradle also gave me some problems with some versions. The v6.4.1 works fine in my Windows.

@efraespada
Copy link
Member

@efraespada efraespada commented Sep 2, 2020

@Panjkrc @tommyzat @AndroidDeveloperLB

I just released v4.0.1 and works fine in the @AndroidDeveloperLB sample

You should remove this from the app/build.gradle file:

sourceSets {
    main.res.srcDirs = ['src/main/res', 'src/secondApp/res']
}

This includes duplicated string res ids in the same buildVariant.

Now Gradle v6.4.1 is needed. v6.1.1 doesn't work properly when running a basic gradlew.bat command execution.

device-2020-09-02-102611

@Panjkrc
Copy link

@Panjkrc Panjkrc commented Sep 2, 2020

Thanks, I'll try it out and let you know if it works

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
4 participants
You can’t perform that action at this time.