Try adding this rule on the proguard-rules.pro
-dontwarn androidx.recyclerview.selection.R**
-dontnote com.varsha.materialcard.Util
If you’re using FAST to build your extension so you could directly use the aar file.
Try adding this rule on the proguard-rules.pro
-dontwarn androidx.recyclerview.selection.R**
-dontnote com.varsha.materialcard.Util
If you’re using FAST to build your extension so you could directly use the aar file.
I m using fast so no need to add rules
Try these rules first. And if you're using any newer APIs of 1.3.2 you have to change them to be compatible with 1.1.0.
build succsefully ill try
without listview component not working after build apk its crash
Check the device logs and try to fix the issue.
I was working on a recyclerview project and that was working good without the in-built ListView component.
Process: com.ai2offline.test.sample, PID: 6629
java.lang.NoClassDefFoundError: Failed resolution of: Landroidx/recyclerview/widget/RecyclerView;
at java.lang.reflect.Executable.getMethodReturnTypeInternal(Native Method)
at java.lang.reflect.Method.getReturnType(Method.java:148)
at java.lang.Class.getDeclaredMethods(Class.java:2728)
at gnu.bytecode.ClassType.addMethods(ClassType.java:979)
at gnu.bytecode.ClassType.getDeclaredMethods(ClassType.java:725)
at gnu.bytecode.ClassType.getMethods(ClassType.java:809)
at gnu.kawa.reflect.ClassMethods.getMethods(ClassMethods.java:106)
at gnu.kawa.reflect.ClassMethods.apply(ClassMethods.java:229)
at gnu.kawa.reflect.Invoke.lookupMethods(Invoke.java:278)
at gnu.kawa.reflect.Invoke.applyN(Invoke.java:185)
at gnu.mapping.ProcedureN.apply2(ProcedureN.java:39)
at com.ai2offline.test.sample.Screen1.$define(Screen1.yail:10257)
at com.google.appinventor.components.runtime.Form.onCreateFinish(Form.java:407)
at com.google.appinventor.components.runtime.Form.onCreate(Form.java:352)
at com.ai2offline.test.sample.Screen1.onCreate(Screen1.yail:10003)
at android.app.Activity.performCreate(Activity.java:8975)
at android.app.Activity.performCreate(Activity.java:8944)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1456)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:4146)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:4322)
at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:103)
at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:139)
at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:96)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2685)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loopOnce(Looper.java:230)
at android.os.Looper.loop(Looper.java:319)
at android.app.ActivityThread.main(ActivityThread.java:8919)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:578)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1103)
Caused by: java.lang.ClassNotFoundException: androidx.recyclerview.widget.RecyclerView
at java.lang.reflect.Executable.getMethodReturnTypeInternal(Native Method)
at java.lang.reflect.Method.getReturnType(Method.java:148)
at java.lang.Class.getDeclaredMethods(Class.java:2728)
at gnu.bytecode.ClassType.addMethods(ClassType.java:979)
at gnu.bytecode.ClassType.getDeclaredMethods(ClassType.java:725)
at gnu.bytecode.ClassType.getMethods(ClassType.java:809)
at gnu.kawa.reflect.ClassMethods.getMethods(ClassMethods.java:106)
at gnu.kawa.reflect.ClassMethods.apply(ClassMethods.java:229)
at gnu.kawa.reflect.Invoke.lookupMethods(Invoke.java:278)
at gnu.kawa.reflect.Invoke.applyN(Invoke.java:185)
at gnu.mapping.ProcedureN.apply2(ProcedureN.java:39)
at com.ai2offline.test.sample.Screen1.$define(Screen1.yail:10257)
at com.google.appinventor.components.runtime.Form.onCreateFinish(Form.java:407)
at com.google.appinventor.components.runtime.Form.onCreate(Form.java:352)
at com.ai2offline.test.sample.Screen1.onCreate(Screen1.yail:10003)
at android.app.Activity.performCreate(Activity.java:8975)
at android.app.Activity.performCreate(Activity.java:8944)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1456)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:4146)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:4322)
at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:103)
at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:139)
at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:96)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2685)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loopOnce(Looper.java:230)
at android.os.Looper.loop(Looper.java:319)
at android.app.ActivityThread.main(ActivityThread.java:8919)
java.lang.NoClassDefFoundError: Failed resolution of: Landroidx/recyclerview/widget/RecyclerView;
Are you keeping androidx.recyclerview.widget.RecyclerView class?
Sorry i dint understand in progurd or i have to import this class
-dontwarn androidx.core.**
-keep public class * extends androidx.recyclerview.widget.RecyclerView{
}
just added in proguard but getting error
Try without keeping this class.
same error giving
Ok, I'll retry and investigate more with my that project and I'll share the results here.
thank u s.i.r
but its working fine after build apk from kodulor builder without using ListViewComponent
By default Kodular builder includes recyclerview library.
any idea which version of recyclerview.jar working
1.0.0 and 1.1.0 is working perfectly for me.