Android Question Error when 10.7

denik

Member
Licensed User
Longtime User
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
 

denik

Member
Licensed User
Longtime User
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

johnmie

Active Member
Licensed User
Longtime User
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
Top