Android Question java.nio.file.NoSuchFileException: d8_arguments.txt

TheRealMatze

Active Member
Licensed User
Hi,
i have to upgrade my app to v34, so i installed the latest b4a, sdk, java etc.
I can run my app in the emulator without any problem - but when i use "create app bundle" i got tis error:

B4X:
B4A Version: 13.00
Parse den Code.    (0.11s)
    Java Version: 19
Building folders structure.    (3.19s)
Führe individuellen Aktion aus.    (0.09s)
Kompiliere den Code.    (2.09s)
Kompiliere Layoutcode.    (0.28s)
Organisiere Libraries.    (0.00s)
    (AndroidX SDK)
Ressourcen zusammenstellen    (0.31s)
Ressourcen verknüpfen    (1.08s)
    build tools: 34.0.0, android jar: android-34
Kompiliere generierten Java Code.    (17.01s)
Suchen von Bibliotheken, die dexiert werden müssen.    (0.00s)
Dex code    Error
Error in flag file argument: '@d8_arguments.txt':
java.nio.file.NoSuchFileException: d8_arguments.txt
Compilation failed with an internal error.
Exception in thread "main" java.lang.RuntimeException: com.android.tools.r8.CompilationFailedException: Compilation failed to complete, origin: d8_arguments.txt
    at com.android.tools.r8.internal.po.a(R8_8.3.37_d0b8d9dfe8720e37c27d2233931d9d72dbd696ffd92111cc9b36e58b4baad1cc:1269)
    at com.android.tools.r8.D8.main(R8_8.3.37_d0b8d9dfe8720e37c27d2233931d9d72dbd696ffd92111cc9b36e58b4baad1cc:5)
Caused by: com.android.tools.r8.CompilationFailedException: Compilation failed to complete, origin: d8_arguments.txt
    at Version.fakeStackEntry(Version_8.3.37.java:0)
    at com.android.tools.r8.Q.a(R8_8.3.37_d0b8d9dfe8720e37c27d2233931d9d72dbd696ffd92111cc9b36e58b4baad1cc:5)
    at com.android.tools.r8.internal.po.a(R8_8.3.37_d0b8d9dfe8720e37c27d2233931d9d72dbd696ffd92111cc9b36e58b4baad1cc:244)
    at com.android.tools.r8.internal.po.a(R8_8.3.37_d0b8d9dfe8720e37c27d2233931d9d72dbd696ffd92111cc9b36e58b4baad1cc:90)
    at com.android.tools.r8.internal.po.a(R8_8.3.37_d0b8d9dfe8720e37c27d2233931d9d72dbd696ffd92111cc9b36e58b4baad1cc:909)
    at com.android.tools.r8.BaseCommand$Builder.build(R8_8.3.37_d0b8d9dfe8720e37c27d2233931d9d72dbd696ffd92111cc9b36e58b4baad1cc:2)
    at com.android.tools.r8.D8.b(R8_8.3.37_d0b8d9dfe8720e37c27d2233931d9d72dbd696ffd92111cc9b36e58b4baad1cc:503)
    at com.android.tools.r8.D8.a(R8_8.3.37_d0b8d9dfe8720e37c27d2233931d9d72dbd696ffd92111cc9b36e58b4baad1cc:1076)
    at com.android.tools.r8.internal.po.a(R8_8.3.37_d0b8d9dfe8720e37c27d2233931d9d72dbd696ffd92111cc9b36e58b4baad1cc:1256)
    ... 1 more
Caused by: java.nio.file.NoSuchFileException: d8_arguments.txt
    at java.base/sun.nio.fs.WindowsException.translateToIOException(WindowsException.java:85)
    at java.base/sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:103)
    at java.base/sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:108)
    at java.base/sun.nio.fs.WindowsFileSystemProvider.newByteChannel(WindowsFileSystemProvider.java:236)
    at java.base/java.nio.file.Files.newByteChannel(Files.java:380)
    at java.base/java.nio.file.Files.newByteChannel(Files.java:432)
    at java.base/java.nio.file.spi.FileSystemProvider.newInputStream(FileSystemProvider.java:422)
    at java.base/java.nio.file.Files.newInputStream(Files.java:160)
    at java.base/java.nio.file.Files.newBufferedReader(Files.java:2921)
    at java.base/java.nio.file.Files.readAllLines(Files.java:3411)
    at java.base/java.nio.file.Files.readAllLines(Files.java:3452)
    at com.android.tools.r8.internal.gq.a(R8_8.3.37_d0b8d9dfe8720e37c27d2233931d9d72dbd696ffd92111cc9b36e58b4baad1cc:40)
    at com.android.tools.r8.q.a(R8_8.3.37_d0b8d9dfe8720e37c27d2233931d9d72dbd696ffd92111cc9b36e58b4baad1cc:56)
    at com.android.tools.r8.D8Command.parse(R8_8.3.37_d0b8d9dfe8720e37c27d2233931d9d72dbd696ffd92111cc9b36e58b4baad1cc:1)
    ... 4 more
    Suppressed: java.lang.RuntimeException: com.android.tools.r8.internal.h: java.nio.file.NoSuchFileException: d8_arguments.txt
        at com.android.tools.r8.internal.X30.a(R8_8.3.37_d0b8d9dfe8720e37c27d2233931d9d72dbd696ffd92111cc9b36e58b4baad1cc:255)
        at com.android.tools.r8.BaseCommand$Builder.a(R8_8.3.37_d0b8d9dfe8720e37c27d2233931d9d72dbd696ffd92111cc9b36e58b4baad1cc:147)
        at com.android.tools.r8.internal.po.a(R8_8.3.37_d0b8d9dfe8720e37c27d2233931d9d72dbd696ffd92111cc9b36e58b4baad1cc:906)
        at com.android.tools.r8.BaseCommand$Builder.build(R8_8.3.37_d0b8d9dfe8720e37c27d2233931d9d72dbd696ffd92111cc9b36e58b4baad1cc:2)
        ... 4 more
    Caused by: com.android.tools.r8.internal.h: java.nio.file.NoSuchFileException: d8_arguments.txt
        at com.android.tools.r8.internal.X30.a(R8_8.3.37_d0b8d9dfe8720e37c27d2233931d9d72dbd696ffd92111cc9b36e58b4baad1cc:346)
        at com.android.tools.r8.internal.X30.error(R8_8.3.37_d0b8d9dfe8720e37c27d2233931d9d72dbd696ffd92111cc9b36e58b4baad1cc:112)
        at com.android.tools.r8.BaseCommand$Builder.error(R8_8.3.37_d0b8d9dfe8720e37c27d2233931d9d72dbd696ffd92111cc9b36e58b4baad1cc:1)
        at com.android.tools.r8.internal.gq.a(R8_8.3.37_d0b8d9dfe8720e37c27d2233931d9d72dbd696ffd92111cc9b36e58b4baad1cc:43)
        at com.android.tools.r8.q.a(R8_8.3.37_d0b8d9dfe8720e37c27d2233931d9d72dbd696ffd92111cc9b36e58b4baad1cc:56)
        at com.android.tools.r8.D8Command.parse(R8_8.3.37_d0b8d9dfe8720e37c27d2233931d9d72dbd696ffd92111cc9b36e58b4baad1cc:1)
        ... 4 more
    Caused by: [CIRCULAR REFERENCE: java.nio.file.NoSuchFileException: d8_arguments.txt]

I´m unsure what to do. I can´t see that i did anything wrong.

Please help.
Matze
 

DonManfred

Expert
Licensed User
Longtime User
Projects are stored on a local nas, connected by smb. Nothing changed on that side.
Try to store them on your lokal pc and compile them again.
 
Upvote 0

TheRealMatze

Active Member
Licensed User
Try to store them on your lokal pc and compile them again.
After copying to my local machine the message is different

B4X:
B4A Version: 13.00
Parse den Code.    (0.09s)
    Java Version: 19
Building folders structure.    (0.02s)
Führe individuellen Aktion aus.    (0.03s)
Kompiliere den Code.    (0.12s)
Kompiliere Layoutcode.    (0.01s)
Organisiere Libraries.    (0.00s)
    (AndroidX SDK)
Ressourcen zusammenstellen    (0.13s)
Ressourcen verknüpfen    (0.14s)
    build tools: 34.0.0, android jar: android-34
Kompiliere generierten Java Code.    (0.01s)
Suchen von Bibliotheken, die dexiert werden müssen.    (0.00s)
Dex code    (0.50s)
Dex merge    (1.84s)
Kopieren von Bibliothek Ressourcen    (0.39s)
Building app bundle    (0.60s)
Signieren der AAB-Datei    Error

jarsigner-Fehler: java.lang.IllegalArgumentException: key algorithm not compatible with signature algorithm

I also copied the key ;)
 
Upvote 0

teddybear

Well-Known Member
Licensed User
After copying to my local machine the message is different
B4X:
B4A Version: 13.00
jarsigner-Fehler: java.lang.IllegalArgumentException: key algorithm not compatible with signature algorithm

I also copied the key ;)
Explicitly set the algorithm
B4X:
 #SignKeyAlgorithm: -digestalg SHA1 -sigalg SHA384withRSA
 
Last edited:
Upvote 0
Top