-
-
Notifications
You must be signed in to change notification settings - Fork 44
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
java.lang.NoClassDefFoundError: Could not initialize class components.Stark #60
Comments
@ilyasdirin I cloned the repo again. |
@efraespada I tried many times with clear, invalidate even macbook restart. I think it may uses some kind of java library because when I build it in windows it asks for java permission. can that libraries may be missing in mac? |
It shouldn't. dependencies {
implementation gradleApi()
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8"
implementation group: 'com.google.guava', name: 'guava', version: '28.0-jre'
testCompile group: 'junit', name: 'junit', version: '4.12'
testCompile group: 'org.mockito', name: 'mockito-core', version: '2.1.0'
} The stranger thing is that it is not working in both systems (Windows - MacOS). |
@ilyasdirin did you build the app with ProGuard or R8 enabled? |
@efraespada no I do not build app with ProGuard or R8. But if I achieve to build it I will eventually use it with proguard but for now I am not able to build it without proguard and R8. |
Did you find a solution to overcome this error @ilyasdirin? |
Hi @jiriklobasa Does this error only happen when Are you getting any other error like this one?
|
Hey @efraespada, yeah, from time to time this also appears. But when you clean the project up and rebuild it always ends with the |
I do |
@klozMobile are you using a macOS system? |
@efraespada yes I'm using macOS catalina |
after many trying, I think this problem com when to add cpp folder and add some native code to project I think there is some conflict with your project native code and our project I hope that help thanks in advanced |
@MostafaAnter you are right. I've created a native C++ project and added SC. It returns the SC uses the default name for the native library ( I've just released Thank you so much @MostafaAnter for your report 🙌 @jiriklobasa @klozMobile @ilyasdirin do you have a similar project case? |
@efraespada so far so good now I can reveal and obfuscate any text on kotlin files but I still can't do hidden to my strings on res folder so this error show to me |
I think It's an error on the G++ compiler flags, some native libraries were not included in the SC native lib for macOS systems. |
Hi @efraespada, I have the same problem and I downloaded v3.6.3 but I have the same error whit v3.6.2 Library not loaded: /usr/local/opt/boost/lib/libboost_system.dylib |
Could you try apply plugin: 'com.android.application'
apply plugin: StringCare
stringcare {
debug true
assetsFiles = ["*.json"]
stringFiles = ['strings.xml']
srcFolders = ['src/main']
}
android {
compileOptions {
sourceCompatibility 1.8
targetCompatibility 1.8
}
}
repositories {
jcenter()
}
dependencies {
implementation "com.stringcare:library:$stringcare_version"
}
|
Hi @efraespada the v4.0.0 works for me but i have one question im trying to obfuscate the strings but the project have different project modules and i can't obfuscate the string of the others modules thanks |
@guillermog888 I think that's because the plugin only controls (by the moment) the application module: apply plugin: 'com.android.application'
apply plugin: StringCare I'll try to fix that. |
@guillermog888 I've created another issue with that problem: I close this one. |
Hi @efraespada, I have the same problem and I downloaded v4.2.1 but I have the same error whit v4.2.1 |
@haitv2910 in which modules you were using Stringcare? |
Just cloning this repo and building the project, we get this error:
The text was updated successfully, but these errors were encountered: