Android Tutorial [Closed] Solutions to "The filename or extension is too long" error

This issue was solved with the B4A 13 Beta 6.

I saw many users (include me) with the problem "The filename or extension is too long", when try to compile the project with the new B4A and SDK.

I have 40 projects in Play Store and only 1 got this problem.

I don't saw a example project to reproduce this problem, which I think is difficult to analysis by @Erel.

As there not a only soluction to this problem and every user has your soluction, I list some possible workarounds for this issue:

1 - using the old SDK with the Android 34 SDK updated
2 - change project folder name to short
3 - change project directory
4 - changing the package name
5 - BridgerLogger option to False
6 - move the projects from activity format to b4xpages
7 - put the Android SDK and Java in shorter paths
8 - move Java JDK and Android SDK to the root

If anyone has another soluction, can put here.
 
Last edited:

Sandman

Expert
Licensed User
Longtime User
If anyone has another soluction, can put here.

Not really another solution, but for your project that have the problem, can you check if this is relevant to you?
 

asales

Expert
Licensed User
Longtime User
Not really another solution, but for your project that have the problem, can you check if this is relevant to you?
Thanks, but the app is in the Play Store. I can't change the package name.
 

Sandman

Expert
Licensed User
Longtime User
I can't change the package name
I was more thinking that perhaps you could just check if the extension was long? I mean, if your extension is ".com", then I'm obviously wrong. But if it's a long extension, there might still be something there to consider. (Not saying you should change it, I imagine only Erel can figure out the solution.)
 

asales

Expert
Licensed User
Longtime User
I was more thinking that perhaps you could just check if the extension was long? I mean, if your extension is ".com", then I'm obviously wrong. But if it's a long extension, there might still be something there to consider. (Not saying you should change it, I imagine only Erel can figure out the solution.)
I changed the in the package name, putting the .es extension and worked:
br.com.app.moremathlanguages -> br.com.app.moremathlanguages.es
Tried with br.com.app.moremathlanguages.morelongextension and worked too.
Reverted to the original name and I got the error again.
 

Sandman

Expert
Licensed User
Longtime User
Huh... Well, something weird is happening. Ok, I'll leave the topic here, I don't have much more to bring to it. I hope you guys can figure it out, it does seem frustrating.
 
Top