Android Question Error inflating class android.support.v7.internal.widget.FitWindowsLinearLayout

Jshco

Member
Licensed User
Hello,

Sorry to bother you, i'm very debutant on B4A. I take back a project coded by a developer who let me down because he had other works.

The app work good but i want to compile it to do small modifications. He send me the codes sources but i block on one error :

The app compiled correctly :

B4A version: 6.31
Parsing code. (0.53s)
Compiling code. (1.74s)
Compiling layouts code. (0.14s)
Compiling debugger engine code. (3.68s)
Running previous successful shell app. (1.37s)
Tip: Choose Tools - Clean project if you want to connect to a different device.
Completed successfully.

But i've this bug when i lunch it on the AVD :

** Service (starter) Create **
** Service (starter) Start **
** Activity (main) Create, isFirst = true **
** Activity (main) Resume **
** Activity (main) Pause, UserClosed = true **
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.xxxxxx.
xxxx/com.xxxx.xxx.mchooseclub}: android.view.InflateException: Binary XML file line #17: Binary XML file line #17: Error inflating class android.support.v7.internal.widget.FitWindowsLinearLayout
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2665)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2726)
at android.app.ActivityThread.-wrap12(ActivityThread.java)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1477)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:154)
at android.app.ActivityThread.main(ActivityThread.java:6119)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:886)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:776)
Caused by: android.view.InflateException: Binary XML file line #17: Binary XML file line #17: Error inflating class android.support.v7.internal.widget.FitWindowsLinearLayout
Caused by: android.view.InflateException: Binary XML file line #17: Error inflating class android.support.v7.internal.widget.FitWindowsLinearLayout
Caused by: java.lang.ClassNotFoundException: Didn't find class "android.support.v7.internal.widget.FitWindowsLinearLayout" on path: DexPathList[[zip file "/data/app/com.xxx.xxxx-1/base.apk"],nativeLibraryDirectories=[/data/app/com.xxx.xxx-1/lib/x86_64, /system/lib64, /vendor/lib64]]
at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
at java.lang.ClassLoader.loadClass(ClassLoader.java:380)
at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
at android.view.LayoutInflater.createView(LayoutInflater.java:609)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:787)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:727)
at android.view.LayoutInflater.inflate(LayoutInflater.java:495)
at android.view.LayoutInflater.inflate(LayoutInflater.java:426)
at android.view.LayoutInflater.inflate(LayoutInflater.java:377)
at android.support.v7.app.AppCompatDelegateImplV7.createSubDecor(AppCompatDelegateImplV7.java:383)
at android.support.v7.app.AppCompatDelegateImplV7.ensureSubDecor(AppCompatDelegateImplV7.java:279)
at android.support.v7.app.AppCompatDelegateImplV7.setContentView(AppCompatDelegateImplV7.java:244)
at android.support.v7.app.AppCompatActivity.setContentView(AppCompatActivity.java:114)
at com.addcourt.prosg.mchooseclub.onCreate(mchooseclub.java:59)
at android.app.Activity.performCreate(Activity.java:6679)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1118)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2618)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2726)
at android.app.ActivityThread.-wrap12(ActivityThread.java)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1477)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:154)
at android.app.ActivityThread.main(ActivityThread.java:6119)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:886)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:776)


Thank you very much for you help !!

Johann
 
Last edited:

Jshco

Member
Licensed User
Thank you very much for your answer Erel.

You must have right, because i'm a little confused about some AdditionalRes in the code. It seems that the developer used the AdditionalRes belows with res files :

C:\android\extras\android\support\v7\appcompat\res, android.support.v7.appcompat
C:\Android\extras\android\support\design\res, android.support.design
C:\Android\extras\android\support\v7\recyclerview\res, android.support.v7.recyclerview
C:\android\extras\android\support\v7\cardview\res

whereas in my computer there are in this folder in a different format.
C:\Android\extras\android\m2repository\com\android\support

So i create the folders C:\android\extras\support\v7\... to match with the code but i don't know which files i've to put in there

Thanks your help !
 
Upvote 0

Jshco

Member
Licensed User
I did it and the app compiled successfully more quickly but i still i have the same error :(

java.lang.RuntimeException: Unable to start activity ComponentInfo{com.xxxxxx.
xxxx/com.xxxx.xxx.mchooseclub}: android.view.InflateException: Binary XML file line #17: Binary XML file line #17: Error inflating class android.support.v7.internal.widget.FitWindowsLinearLayout

Do you think that i can resolve the problem with the forum or i should try to find a B4A coder to check the code directly on my computer ?

Thank you very much!
 
Upvote 0

Erel

B4X founder
Staff member
Licensed User
Longtime User
Do you think that i can resolve the problem with the forum or i should try to find a B4A coder to check the code directly on my computer ?
Hard to say. The best way to solve it is by creating a small project based on the same libraries that produces this error. You should then upload the small project.
 
Upvote 0

Jshco

Member
Licensed User
Unfortunatly i don't think i've the skills to do that, i don't know the libraries enough :(

Do you have an idea about which librarie can cause this error ?

I might copy the AdditionalRes or AdditionalJar declared in the Main part ?
 
Upvote 0

Jshco

Member
Licensed User
Alright, thank you very much for your time Erel !

I'll put an offer to try to find a b4a developer and order a support mission to help me to compile the codes sources on my PC
 
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
i should try to find a B4A coder to check the code directly on my computer ?
I´ve not much time... But if you have teamviewer installed i could connect to your pc to check.

Make sure to open:
- The android sdk installer
- Your b4a project
- A Windows explorer with the projectfolder open

contact me via private message
 
Upvote 0
Top