Android Question Problem: 'The file name or extension is too long' (B4A 13)

arfprogramas

Member
Licensed User
Longtime User
Problem happens on B4A 13 Beta #2, in the the previous stable B4A the error didn't happen.

I have a project that I use two Build Configurations. One works fine, the other gives me the error: [The file name or extension is too long]
These builds configurations have no differences, just a few lines of code.

I use two build.bat with a follow code line:
B4X:
B4ABuilder.exe -Task=Build -Configuration=AppName -NoSign=False -Obfuscate=True -Optimize=True -BaseFolder=%APP%
B4X:
B4ABuilder.exe -Task=Build -Configuration=LiteLF -NoSign=False -Obfuscate=True -Optimize=True -BaseFolder=%APP%

I noticed this difference between the compilations: --proto-format.

B4X:
B4ABuilder v13.00 BETA #2
Global Java version: 19
BaseFolder: D:\ARF_Programas\B4X\AppName\B4A
ProjectFile: D:\ARF_Programas\B4X\AppName\B4A\AppName.b4a
BuildConfiguration: LiteLF,com.arfprogramas.AppNameLite,KVS_ENCRYPTION,Lite,LiteLF,FacebookSDK
Parsing code.
Java Version: 19
Compiling code.

ObfuscatorMap.txt file created in Objects folder.
Compiling layouts code.
Organizing libraries.
(AndroidX SDK)
Compiling resources
Linking resources
link --proto-format --auto-add-overlay --no-version-vectors --manifest AndroidManifest.xml -I "D:\ARF_Programas\B4X\_Suporte\Android-SDK\platforms\android-34\android.jar" bin\extra\compiled_resources\com.arfprogramas.AppNameLite.zip -R bin\extra\compiled_resources\icon.zip  -R bin\extra\compiled_resources\androidx.core.zip  --extra-packages androidx.core  -R bin\extra\compiled_resources\androidx.core.ktx.zip  --extra-packages androidx.core.ktx  -R bin\extra\compiled_resources\androidx.core.testing.zip  --extra-packages androidx.core.testing  -R bin\extra\compiled_resources\androidx.annotation.experimental.zip  --extra-packages androidx.annotation.experimental  -R bin\extra\compiled_resources\androidx.lifecycle.livedata.zip  --extra-packages androidx.lifecycle.livedata  -R bin\extra\compiled_resources\androidx.lifecycle.livedata.core.zip  --extra-packages androidx.lifecycle.livedata.core  -R bin\extra\compiled_resources\androidx.lifecycle.livedata.core.ktx.zip  --extra-packages androidx.lifecycle.livedata.core.ktx  -R bin\extra\compiled_resources\androidx.lifecycle.livedata.ktx.zip  --extra-packages androidx.lifecycle.livedata.ktx  -R bin\extra\compiled_resources\androidx.lifecycle.process.zip  --extra-packages androidx.lifecycle.process  -R bin\extra\compiled_resources\androidx.lifecycle.reactivestreams.zip  --extra-packages androidx.lifecycle.reactivestreams  -R bin\extra\compiled_resources\androidx.lifecycle.reactivestreams.ktx.zip  --extra-packages androidx.lifecycle.reactivestreams.ktx  -R bin\extra\compiled_resources\androidx.lifecycle.testing.zip  --extra-packages androidx.lifecycle.testing  -R bin\extra\compiled_resources\androidx.lifecycle.service.zip  --extra-packages androidx.lifecycle.service  -R bin\extra\compiled_resources\androidx.lifecycle.viewmodel.ktx.zip  --extra-packages androidx.lifecycle.viewmodel.ktx  -R bin\extra\compiled_resources\androidx.lifecycle.viewmodel.savedstate.zip  --extra-packages androidx.lifecycle.viewmodel.savedstate  -R bin\extra\compiled_resources\androidx.savedstate.zip  --extra-packages androidx.savedstate  -R bin\extra\compiled_resources\androidx.savedstate.ktx.zip  --extra-packages androidx.savedstate.ktx  -R bin\extra\compiled_resources\androidx.lifecycle.viewmodel.compose.zip  --extra-packages androidx.lifecycle.viewmodel.compose  -R bin\extra\compiled_resources\androidx.compose.runtime.zip  --extra-packages androidx.compose.runtime  -R bin\extra\compiled_resources\androidx.compose.runtime.livedata.zip  --extra-packages androidx.compose.runtime.livedata  -R bin\extra\compiled_resources\androidx.compose.runtime.rxjava2.zip  --extra-packages androidx.compose.runtime.rxjava2  -R bin\extra\compiled_resources\androidx.compose.runtime.rxjava3.zip  --extra-packages androidx.compose.runtime.rxjava3  -R bin\extra\compiled_resources\androidx.compose.ui.zip  --extra-packages androidx.compose.ui  -R bin\extra\compiled_resources\androidx.compose.ui.test.manifest.zip  --extra-packages androidx.compose.ui.test.manifest  -R bin\extra\compiled_resources\androidx.compose.ui.text.googlefonts.zip  --extra-packages androidx.compose.ui.text.googlefonts  -R bin\extra\compiled_resources\androidx.compose.ui.viewbinding.zip  --extra-packages androidx.compose.ui.viewbinding  -R bin\extra\compiled_resources\androidx.activity.zip  --extra-packages androidx.activity  -R bin\extra\compiled_resources\androidx.activity.compose.zip  --extra-packages androidx.activity.compose  -R bin\extra\compiled_resources\androidx.activity.ktx.zip  --extra-packages androidx.activity.ktx  -R bin\extra\compiled_resources\androidx.compose.runtime.saveable.zip  --extra-packages androidx.compose.runtime.saveable  -R bin\extra\compiled_resources\androidx.lifecycle.viewmodel.zip  --extra-packages androidx.lifecycle.viewmodel  -R bin\extra\compiled_resources\androidx.lifecycle.ktx.zip  --extra-packages androidx.lifecycle.ktx  -R bin\extra\compiled_resources\androidx.lifecycle.runtime.compose.zip  --extra-packages androidx.lifecycle.runtime.compose  -R bin\extra\compiled_resources\androidx.startup.zip  --extra-packages androidx.startup  -R bin\extra\compiled_resources\androidx.arch.core.zip  --extra-packages androidx.arch.core  -R bin\extra\compiled_resources\androidx.lifecycle.runtime.zip  --extra-packages androidx.lifecycle.runtime  -R bin\extra\compiled_resources\androidx.versionedparcelable.zip  --extra-packages androidx.versionedparcelable  -R bin\extra\compiled_resources\com.google.android.gms.ads.impl.zip  --extra-packages com.google.android.gms.ads.impl  -R bin\extra\compiled_resources\androidx.browser.zip  --extra-packages androidx.browser  -R bin\extra\compiled_resources\androidx.privacysandbox.ads.adservices.zip  --extra-packages androidx.privacysandbox.ads.adservices  -R bin\extra\compiled_resources\androidx.privacysandbox.ads.adservices.java.zip  --extra-packages androidx.privacysandbox.ads.adservices.java  -R bin\extra\compiled_resources\androidx.webkit.zip  --extra-packages androidx.webkit  -R bin\extra\compiled_resources\com.google.android.gms.common.zip  --extra-packages com.google.android.gms.common  -R bin\extra\compiled_resources\androidx.fragment.zip  --extra-packages androidx.fragment  -R bin\extra\compiled_resources\androidx.fragment.compose.zip  --extra-packages androidx.fragment.compose  -R bin\extra\compiled_resources\androidx.fragment.ktx.zip  --extra-packages androidx.fragment.ktx  -R bin\extra\compiled_resources\androidx.fragment.testing.zip  --extra-packages androidx.fragment.testing  -R bin\extra\compiled_resources\androidx.fragment.testing.manifest.zip  --extra-packages androidx.fragment.testing.manifest  -R bin\extra\compiled_resources\androidx.test.core.zip  --extra-packages androidx.test.core  -R bin\extra\compiled_resources\androidx.tracing.zip  --extra-packages androidx.tracing  -R bin\extra\compiled_resources\androidx.tracing.ktx.zip  --extra-packages androidx.tracing.ktx  -R bin\extra\compiled_resources\com.google.android.gms.ads.zip  --extra-packages com.google.android.gms.ads  -R bin\extra\compiled_resources\androidx.work.zip  --extra-packages androidx.work  -R bin\extra\compiled_resources\com.google.android.gms.base.zip  --extra-packages com.google.android.gms.base  -R bin\extra\compiled_resources\androidx.localbroadcastmanager.zip  --extra-packages androidx.localbroadcastmanager  -R bin\extra\compiled_resources\com.google.android.gms.measurement.api.zip  --extra-packages com.google.android.gms.measurement.api  -R bin\extra\compiled_resources\com.google.firebase.zip  --extra-packages com.google.firebase  -R bin\extra\compiled_resources\com.google.firebase.messaging.zip  --extra-packages com.google.firebase.messaging  -R bin\extra\compiled_resources\androidx.media.zip  --extra-packages androidx.media  -R bin\extra\compiled_resources\androidx.coordinatorlayout.zip  --extra-packages androidx.coordinatorlayout  -R bin\extra\compiled_resources\androidx.drawerlayout.zip  --extra-packages androidx.drawerlayout  -R bin\extra\compiled_resources\androidx.slidingpanelayout.zip  --extra-packages androidx.slidingpanelayout  -R bin\extra\compiled_resources\androidx.swiperefreshlayout.zip  --extra-packages androidx.swiperefreshlayout  -A bin\extra\assets  -A ..\Files -A b4xlibs\Files  -A "D:\ARF_Programas\B4X\_Suporte\Android-SDK\tools\..\extras\b4a_local\unpacked-googleconsent-63857420724000\assets" -o bin\base.zip --java gen
build tools: 34.0.0, android jar: android-34
Compiling generated Java code.
System.ComponentModel.Win32Exception (0x80004005): O nome do arquivo ou a extensão é muito grande [The file name or extension is too long]
   em System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo)
   em f7.a(Process A_0, Boolean A_1, DataReceivedEventHandler A_2, DataReceivedEventHandler A_3, String A_4)
   em f7.d.g()
   em im.a(a A_0)
   em in.j(String[] A_0)
   em in.m(String[] A_0)
O nome do arquivo ou a extensão é muito grande [The file name or extension is too long]

B4X:
B4ABuilder v13.00 BETA #2
Global Java version: 19
BaseFolder: D:\ARF_Programas\B4X\AppName\B4A
ProjectFile: D:\ARF_Programas\B4X\AppName\B4A\AppName.b4a
BuildConfiguration: AppName,com.arfprogramas.AppName,KVS_ENCRYPTION,AppName,FacebookSDK
Parsing code.
Java Version: 19
Compiling code.

ObfuscatorMap.txt file created in Objects folder.
Compiling layouts code.
Organizing libraries.
(AndroidX SDK)
Compiling resources
Linking resources
link  --auto-add-overlay --no-version-vectors --manifest AndroidManifest.xml -I "D:\ARF_Programas\B4X\_Suporte\Android-SDK\platforms\android-34\android.jar" bin\extra\compiled_resources\com.arfprogramas.AppName.zip -R bin\extra\compiled_resources\icon.zip  -R bin\extra\compiled_resources\androidx.core.zip  --extra-packages androidx.core  -R bin\extra\compiled_resources\androidx.core.ktx.zip  --extra-packages androidx.core.ktx  -R bin\extra\compiled_resources\androidx.core.testing.zip  --extra-packages androidx.core.testing  -R bin\extra\compiled_resources\androidx.annotation.experimental.zip  --extra-packages androidx.annotation.experimental  -R bin\extra\compiled_resources\androidx.lifecycle.livedata.zip  --extra-packages androidx.lifecycle.livedata  -R bin\extra\compiled_resources\androidx.lifecycle.livedata.core.zip  --extra-packages androidx.lifecycle.livedata.core  -R bin\extra\compiled_resources\androidx.lifecycle.livedata.core.ktx.zip  --extra-packages androidx.lifecycle.livedata.core.ktx  -R bin\extra\compiled_resources\androidx.lifecycle.livedata.ktx.zip  --extra-packages androidx.lifecycle.livedata.ktx  -R bin\extra\compiled_resources\androidx.lifecycle.process.zip  --extra-packages androidx.lifecycle.process  -R bin\extra\compiled_resources\androidx.lifecycle.reactivestreams.zip  --extra-packages androidx.lifecycle.reactivestreams  -R bin\extra\compiled_resources\androidx.lifecycle.reactivestreams.ktx.zip  --extra-packages androidx.lifecycle.reactivestreams.ktx  -R bin\extra\compiled_resources\androidx.lifecycle.testing.zip  --extra-packages androidx.lifecycle.testing  -R bin\extra\compiled_resources\androidx.lifecycle.service.zip  --extra-packages androidx.lifecycle.service  -R bin\extra\compiled_resources\androidx.lifecycle.viewmodel.ktx.zip  --extra-packages androidx.lifecycle.viewmodel.ktx  -R bin\extra\compiled_resources\androidx.lifecycle.viewmodel.savedstate.zip  --extra-packages androidx.lifecycle.viewmodel.savedstate  -R bin\extra\compiled_resources\androidx.savedstate.zip  --extra-packages androidx.savedstate  -R bin\extra\compiled_resources\androidx.savedstate.ktx.zip  --extra-packages androidx.savedstate.ktx  -R bin\extra\compiled_resources\androidx.lifecycle.viewmodel.compose.zip  --extra-packages androidx.lifecycle.viewmodel.compose  -R bin\extra\compiled_resources\androidx.compose.runtime.zip  --extra-packages androidx.compose.runtime  -R bin\extra\compiled_resources\androidx.compose.runtime.livedata.zip  --extra-packages androidx.compose.runtime.livedata  -R bin\extra\compiled_resources\androidx.compose.runtime.rxjava2.zip  --extra-packages androidx.compose.runtime.rxjava2  -R bin\extra\compiled_resources\androidx.compose.runtime.rxjava3.zip  --extra-packages androidx.compose.runtime.rxjava3  -R bin\extra\compiled_resources\androidx.compose.ui.zip  --extra-packages androidx.compose.ui  -R bin\extra\compiled_resources\androidx.compose.ui.test.manifest.zip  --extra-packages androidx.compose.ui.test.manifest  -R bin\extra\compiled_resources\androidx.compose.ui.text.googlefonts.zip  --extra-packages androidx.compose.ui.text.googlefonts  -R bin\extra\compiled_resources\androidx.compose.ui.viewbinding.zip  --extra-packages androidx.compose.ui.viewbinding  -R bin\extra\compiled_resources\androidx.activity.zip  --extra-packages androidx.activity  -R bin\extra\compiled_resources\androidx.activity.compose.zip  --extra-packages androidx.activity.compose  -R bin\extra\compiled_resources\androidx.activity.ktx.zip  --extra-packages androidx.activity.ktx  -R bin\extra\compiled_resources\androidx.compose.runtime.saveable.zip  --extra-packages androidx.compose.runtime.saveable  -R bin\extra\compiled_resources\androidx.lifecycle.viewmodel.zip  --extra-packages androidx.lifecycle.viewmodel  -R bin\extra\compiled_resources\androidx.lifecycle.ktx.zip  --extra-packages androidx.lifecycle.ktx  -R bin\extra\compiled_resources\androidx.lifecycle.runtime.compose.zip  --extra-packages androidx.lifecycle.runtime.compose  -R bin\extra\compiled_resources\androidx.startup.zip  --extra-packages androidx.startup  -R bin\extra\compiled_resources\androidx.arch.core.zip  --extra-packages androidx.arch.core  -R bin\extra\compiled_resources\androidx.lifecycle.runtime.zip  --extra-packages androidx.lifecycle.runtime  -R bin\extra\compiled_resources\androidx.versionedparcelable.zip  --extra-packages androidx.versionedparcelable  -R bin\extra\compiled_resources\com.google.android.gms.ads.impl.zip  --extra-packages com.google.android.gms.ads.impl  -R bin\extra\compiled_resources\androidx.browser.zip  --extra-packages androidx.browser  -R bin\extra\compiled_resources\androidx.privacysandbox.ads.adservices.zip  --extra-packages androidx.privacysandbox.ads.adservices  -R bin\extra\compiled_resources\androidx.privacysandbox.ads.adservices.java.zip  --extra-packages androidx.privacysandbox.ads.adservices.java  -R bin\extra\compiled_resources\androidx.webkit.zip  --extra-packages androidx.webkit  -R bin\extra\compiled_resources\com.google.android.gms.common.zip  --extra-packages com.google.android.gms.common  -R bin\extra\compiled_resources\androidx.fragment.zip  --extra-packages androidx.fragment  -R bin\extra\compiled_resources\androidx.fragment.compose.zip  --extra-packages androidx.fragment.compose  -R bin\extra\compiled_resources\androidx.fragment.ktx.zip  --extra-packages androidx.fragment.ktx  -R bin\extra\compiled_resources\androidx.fragment.testing.zip  --extra-packages androidx.fragment.testing  -R bin\extra\compiled_resources\androidx.fragment.testing.manifest.zip  --extra-packages androidx.fragment.testing.manifest  -R bin\extra\compiled_resources\androidx.test.core.zip  --extra-packages androidx.test.core  -R bin\extra\compiled_resources\androidx.tracing.zip  --extra-packages androidx.tracing  -R bin\extra\compiled_resources\androidx.tracing.ktx.zip  --extra-packages androidx.tracing.ktx  -R bin\extra\compiled_resources\com.google.android.gms.ads.zip  --extra-packages com.google.android.gms.ads  -R bin\extra\compiled_resources\androidx.work.zip  --extra-packages androidx.work  -R bin\extra\compiled_resources\com.google.android.gms.base.zip  --extra-packages com.google.android.gms.base  -R bin\extra\compiled_resources\androidx.localbroadcastmanager.zip  --extra-packages androidx.localbroadcastmanager  -R bin\extra\compiled_resources\com.google.android.gms.measurement.api.zip  --extra-packages com.google.android.gms.measurement.api  -R bin\extra\compiled_resources\com.google.firebase.zip  --extra-packages com.google.firebase  -R bin\extra\compiled_resources\com.google.firebase.messaging.zip  --extra-packages com.google.firebase.messaging  -R bin\extra\compiled_resources\androidx.media.zip  --extra-packages androidx.media  -R bin\extra\compiled_resources\androidx.coordinatorlayout.zip  --extra-packages androidx.coordinatorlayout  -R bin\extra\compiled_resources\androidx.drawerlayout.zip  --extra-packages androidx.drawerlayout  -R bin\extra\compiled_resources\androidx.slidingpanelayout.zip  --extra-packages androidx.slidingpanelayout  -R bin\extra\compiled_resources\androidx.swiperefreshlayout.zip  --extra-packages androidx.swiperefreshlayout  -A bin\extra\assets  -A ..\Files -A b4xlibs\Files  -A "D:\ARF_Programas\B4X\_Suporte\Android-SDK\tools\..\extras\b4a_local\unpacked-googleconsent-63857420724000\assets" -o bin\temp.ap_ --java gen
build tools: 34.0.0, android jar: android-34
Compiling generated Java code.
Finding libraries that need to be dexed.
Dex code
Dex merge
Copying libraries resources
Output file: D:\ARF_Programas\B4X\AppName\B4A\Objects\bin\temp.ap_
ZipAlign file.
Signing package file (private key).
Completed successfully: 25.96 seconds
 
Top