D denik Member Licensed User Longtime User Apr 2, 2021 #1 Dear Sirs! When I install B4A ver 10.7, I receive such error java.lang.NoSuchFieldError: No static field ac_spinner_row_layout of type I in class Lanywheresoftware/b4a/objects/R$layout; or its superclasses (declaration of 'anywheresoftware.b4a.objects.R$layout' appears in base.apk) Earlier (before version 10.7) there was no such error Are there any solutions? Thanks in advance
Dear Sirs! When I install B4A ver 10.7, I receive such error java.lang.NoSuchFieldError: No static field ac_spinner_row_layout of type I in class Lanywheresoftware/b4a/objects/R$layout; or its superclasses (declaration of 'anywheresoftware.b4a.objects.R$layout' appears in base.apk) Earlier (before version 10.7) there was no such error Are there any solutions? Thanks in advance
M MikeSW17 Active Member Licensed User Longtime User Apr 2, 2021 #2 Problems with 10.7 are almost always due to an incorrect installation process. You need to follow ALL the install instructions exactly from here: https://www.b4x.com/b4a.html Also you need to get bundletool.jar and install it as described here: https://www.b4x.com/android/forum/threads/b4a-v10-7-is-available-for-download.128734/#content Upvote 0
Problems with 10.7 are almost always due to an incorrect installation process. You need to follow ALL the install instructions exactly from here: https://www.b4x.com/b4a.html Also you need to get bundletool.jar and install it as described here: https://www.b4x.com/android/forum/threads/b4a-v10-7-is-available-for-download.128734/#content
D denik Member Licensed User Longtime User Apr 5, 2021 #3 I guess this is not the reason. Most projects recompiled fine. And in this java.lang.NoSuchFieldError: No static field ac_spinner_row_layout of type I in class Lanywheresoftware/b4a/objects/R$layout; or its superclasses (declaration of 'anywheresoftware.b4a.objects.R$layout' appears in base.apk) at de.amberhome.objects.appcompat.ACSpinnerWrapper$ACB4ASpinnerAdapter.getView(ACSpinnerWrapper.java:465) at android.widget.AbsSpinner.onMeasure(AbsSpinner.java:206) at android.widget.Spinner.onMeasure(Spinner.java:614) at androidx.appcompat.widget.AppCompatSpinner.onMeasure(AppCompatSpinner.java:436) seems to be some kind of problem with ACSpinner. But maybe this is somehow solved without rewriting the code? Upvote 0
I guess this is not the reason. Most projects recompiled fine. And in this java.lang.NoSuchFieldError: No static field ac_spinner_row_layout of type I in class Lanywheresoftware/b4a/objects/R$layout; or its superclasses (declaration of 'anywheresoftware.b4a.objects.R$layout' appears in base.apk) at de.amberhome.objects.appcompat.ACSpinnerWrapper$ACB4ASpinnerAdapter.getView(ACSpinnerWrapper.java:465) at android.widget.AbsSpinner.onMeasure(AbsSpinner.java:206) at android.widget.Spinner.onMeasure(Spinner.java:614) at androidx.appcompat.widget.AppCompatSpinner.onMeasure(AppCompatSpinner.java:436) seems to be some kind of problem with ACSpinner. But maybe this is somehow solved without rewriting the code?
Erel B4X founder Staff member Licensed User Longtime User Apr 5, 2021 #4 Why not use a regular Spinner? Android 4 devices are mostly not relevant anymore. AppCompat is not really needed. Try this project: https://www.b4x.com/android/forum/threads/appcompat-with-toolbar-minimal-example.79896/#content If it is not working then there is a configuration problem. Upvote 0
Why not use a regular Spinner? Android 4 devices are mostly not relevant anymore. AppCompat is not really needed. Try this project: https://www.b4x.com/android/forum/threads/appcompat-with-toolbar-minimal-example.79896/#content If it is not working then there is a configuration problem.
johnmie Active Member Licensed User Longtime User Apr 13, 2021 #5 Had the same problem with 10.7 until I discovered that in some cases I defined global 'X as X' instead of 'X1 as X'. I was that simple. Upvote 0
Had the same problem with 10.7 until I discovered that in some cases I defined global 'X as X' instead of 'X1 as X'. I was that simple.