Hi! i have the unbiased plugin for unity but cannot find where to submit an issue.
I was trying to use proguard with this time cheat asset, added this code in proguard plugin android txt
-keepattributes *Annotation* -keepattributes SourceFile,LineNumberTable -keep public class * extends java.lang.Exception -keep public class UnbiasedTime -keep class com.crashlytics.** { *; } -dontwarn com.crashlytics.**
But i have this error that i can see in unity cloud
java.lang.ClassNotFoundException: Didnāt find class ācom/vasilij/unbiasedtime/UnbiasedTimeā on path: DexPathList[[zip file ā/data/app/com.IndieFist.RequiemforerichSann-MlYgc81SIFnfOvaLdMcKSg==/base.apkā],nativeLibraryDirectories=[/data/app/com.IndieFist.RequiemforerichSann-MlYgc81SIFnfOvaLdMcKSg==/lib/arm64, /data/app/com.IndieFist.RequiemforerichSann-MlYgc81SIFnfOvaLdMcKSg==/base.apk!/lib/arm64-v8a, /system/lib64]]
dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:134)
This problem is only when using proguard, how can i exclude this plugin from proguard?
also i have to add some in every class that are using this asset? or in the main class?
I have added this two lines but still same crash in unity cloud, in game is working fine.
āunbiased plugin for unityā do you have the asset store link? You likely want to contact the developer who should be listed there.
1 Like
They dont know what to do, but give this step:
I donāt know, maybe try replacing ā-keep public class UnbiasedTimeā with ā-keep class com.vasilij.unbiasedtime.UnbiasedTime.** { *; }ā
And now i have this error:
Managed Stack Trace:
java.lang.NoSuchMethodError: no static method with name=āvtcOnSessionStartā signature=ā(Lcom.unity3d.player.UnityPlayerActivity;)Vā in class Lcom.vasilij.unbiasedtime.UnbiasedTime;
com.unity3d.player.ReflectionHelper.getMethodID(Unknown Source:167)
com.unity3d.player.UnityPlayer.nativeRender(Native Method)
com.unity3d.player.UnityPlayer.c(Unknown Source:0)
com.unity3d.player.UnityPlayer$e$1.handleMessage(Unknown Source:88)
android.os.Handler.dispatchMessage(Handler.java:102)
android.os.Looper.loop(Looper.java:214)
vtcOnSessionStart is inside UnbiasedTime.cs and its under #if unity_iphone statement, could be this the problem?
Asset link:
time cheat asset store unity
https://assetstore.unity.com/packages/tools/integration/time-cheat-prevention-18984
Well I havenāt found any solution jet.
How can I exclude this class without having null reports?
Maybe do I need to exclude also my main class? this one where is referenced to use unbiased plugin?
Can I exclude my class by this way?
-keepclasseswithmembernames class * {
native ;
}
Have you got their examples to work? That would be my first step.
1 Like
Sorry for bump this thread, but i was fixed and is working with:
#unbiased
-keep class com.vasilij.unbiasedtime.** { *; }
I just used in another project, found the same problem and this thread lol.
Is a really good plugin and is working fine, but have bad reviews in the store:
https://assetstore.unity.com/packages/tools/integration/time-cheat-prevention-18984#publisher