Android Question Absolute Newbie Problem

Tranquil

Member
Licensed User
Longtime User
Tried to compile my first "hello World" with b4a but struggeling with the compiling process.

Connected to my smartphone by the b4a bridge, created a standard template in b4a and just hit F5 to compile.
After some time a get the following dex related error message I'm not able to solve myself:

B4X:
Dex code    Error
Error in test\helloWorld\Objects\dexed:
java.nio.file.NoSuchFileException: test\helloWorld\Objects\dexed
Error in test\helloWorld\Objects\bin\classes\b4a\example\main$1.class:
java.nio.file.NoSuchFileException: test\helloWorld\Objects\bin\classes\b4a\example\main$1.class
Error in test\helloWorld\Objects\bin\classes\b4a\example\main$B4AMenuItemsClickListener.class:
java.nio.file.NoSuchFileException: test\helloWorld\Objects\bin\classes\b4a\example\main$B4AMenuItemsClickListener.class
Error in test\helloWorld\Objects\bin\classes\b4a\example\main$HandleKeyDelayed.class:
java.nio.file.NoSuchFileException: test\helloWorld\Objects\bin\classes\b4a\example\main$HandleKeyDelayed.class
Error in test\helloWorld\Objects\bin\classes\b4a\example\main$ResumeMessage.class:
java.nio.file.NoSuchFileException: test\helloWorld\Objects\bin\classes\b4a\example\main$ResumeMessage.class
Error in test\helloWorld\Objects\bin\classes\b4a\example\main$WaitForLayout.class:
java.nio.file.NoSuchFileException: test\helloWorld\Objects\bin\classes\b4a\example\main$WaitForLayout.class
Error in test\helloWorld\Objects\bin\classes\b4a\example\main.class:
java.nio.file.NoSuchFileException: test\helloWorld\Objects\bin\classes\b4a\example\main.class
Error in test\helloWorld\Objects\bin\classes\b4a\example\R$drawable.class:
java.nio.file.NoSuchFileException: test\helloWorld\Objects\bin\classes\b4a\example\R$drawable.class
Error in test\helloWorld\Objects\bin\classes\b4a\example\R$style.class:
java.nio.file.NoSuchFileException: test\helloWorld\Objects\bin\classes\b4a\example\R$style.class
Error in test\helloWorld\Objects\bin\classes\b4a\example\R.class:
java.nio.file.NoSuchFileException: test\helloWorld\Objects\bin\classes\b4a\example\R.class
Error in test\helloWorld\Objects\bin\classes\b4a\example\starter$1.class:
java.nio.file.NoSuchFileException: test\helloWorld\Objects\bin\classes\b4a\example\starter$1.class
Error in test\helloWorld\Objects\bin\classes\b4a\example\starter$2.class:
java.nio.file.NoSuchFileException: test\helloWorld\Objects\bin\classes\b4a\example\starter$2.class
Error in test\helloWorld\Objects\bin\classes\b4a\example\starter$starter_BR.class:
java.nio.file.NoSuchFileException: test\helloWorld\Objects\bin\classes\b4a\example\starter$starter_BR.class
Error in test\helloWorld\Objects\bin\classes\b4a\example\starter.class:
java.nio.file.NoSuchFileException: test\helloWorld\Objects\bin\classes\b4a\example\starter.class
Error in test\helloWorld\Objects\bin\classes\b4a\example\designerscripts\LS_layout.class:
java.nio.file.NoSuchFileException: test\helloWorld\Objects\bin\classes\b4a\example\designerscripts\LS_layout.class
Error: Invalid output: test\helloWorld\Objects\dexed
Output must be a .zip or .jar archive or an existing directory
Compilation failed
Exception in thread "main" java.lang.RuntimeException: com.android.tools.r8.CompilationFailedException: Compilation failed to complete
    at com.android.tools.r8.internal.vj.a(R8_3.3.20-dev+aosp1_dd4c01853fd917497aef2d09abff533f0d25b062517ea74449d40e1778a34753:98)
    at com.android.tools.r8.D8.main(R8_3.3.20-dev+aosp1_dd4c01853fd917497aef2d09abff533f0d25b062517ea74449d40e1778a34753:4)
Caused by: com.android.tools.r8.CompilationFailedException: Compilation failed to complete
    at Version.fakeStackEntry(Version_3.3.20-dev+aosp1.java:0)
    at com.android.tools.r8.internal.vj.a(R8_3.3.20-dev+aosp1_dd4c01853fd917497aef2d09abff533f0d25b062517ea74449d40e1778a34753:75)
    at com.android.tools.r8.internal.vj.a(R8_3.3.20-dev+aosp1_dd4c01853fd917497aef2d09abff533f0d25b062517ea74449d40e1778a34753:28)
    at com.android.tools.r8.internal.vj.a(R8_3.3.20-dev+aosp1_dd4c01853fd917497aef2d09abff533f0d25b062517ea74449d40e1778a34753:27)
    at com.android.tools.r8.BaseCommand$Builder.build(R8_3.3.20-dev+aosp1_dd4c01853fd917497aef2d09abff533f0d25b062517ea74449d40e1778a34753:2)
    at com.android.tools.r8.D8.a(R8_3.3.20-dev+aosp1_dd4c01853fd917497aef2d09abff533f0d25b062517ea74449d40e1778a34753:4)
    at com.android.tools.r8.internal.vj.a(R8_3.3.20-dev+aosp1_dd4c01853fd917497aef2d09abff533f0d25b062517ea74449d40e1778a34753:85)
    ... 1 more
Caused by: com.android.tools.r8.internal.f: Invalid output: test\helloWorld\Objects\dexed
Output must be a .zip or .jar archive or an existing directory
    at com.android.tools.r8.internal.YS.a(R8_3.3.20-dev+aosp1_dd4c01853fd917497aef2d09abff533f0d25b062517ea74449d40e1778a34753:14)
    at com.android.tools.r8.internal.YS.error(R8_3.3.20-dev+aosp1_dd4c01853fd917497aef2d09abff533f0d25b062517ea74449d40e1778a34753:1)
    at com.android.tools.r8.internal.Ak.a(R8_3.3.20-dev+aosp1_dd4c01853fd917497aef2d09abff533f0d25b062517ea74449d40e1778a34753:17)
    at com.android.tools.r8.BaseCompilerCommand$Builder.f(R8_3.3.20-dev+aosp1_dd4c01853fd917497aef2d09abff533f0d25b062517ea74449d40e1778a34753:5)
    at com.android.tools.r8.D8Command$Builder.f(R8_3.3.20-dev+aosp1_dd4c01853fd917497aef2d09abff533f0d25b062517ea74449d40e1778a34753:313)
    at com.android.tools.r8.BaseCommand$Builder.a(R8_3.3.20-dev+aosp1_dd4c01853fd917497aef2d09abff533f0d25b062517ea74449d40e1778a34753:1)
    at com.android.tools.r8.internal.vj.a(R8_3.3.20-dev+aosp1_dd4c01853fd917497aef2d09abff533f0d25b062517ea74449d40e1778a34753:24)
    ... 4 more
    Suppressed: java.lang.RuntimeException: com.android.tools.r8.internal.f: Invalid output: test\helloWorld\Objects\dexed
Output must be a .zip or .jar archive or an existing directory
        at com.android.tools.r8.internal.YS.a(R8_3.3.20-dev+aosp1_dd4c01853fd917497aef2d09abff533f0d25b062517ea74449d40e1778a34753:25)
        at com.android.tools.r8.BaseCommand$Builder.a(R8_3.3.20-dev+aosp1_dd4c01853fd917497aef2d09abff533f0d25b062517ea74449d40e1778a34753:3)
        ... 5 more
    [CIRCULAR REFERENCE:com.android.tools.r8.internal.f: Invalid output: test\helloWorld\Objects\dexed
Output must be a .zip or .jar archive or an existing directory]

Tried a fresh install but this did not fix it.

Anyone have an idea whats going on here?
 

Sagenut

Expert
Licensed User
Longtime User
Had you installed everything correctly following exactly and carefully every steps from this link?
https://www.b4x.com/b4a.html
Download all what is needed from the links supplied in the guide.
 
Upvote 0

Shelby

Well-Known Member
Licensed User
You may want to use an export of a zip from you ide. Click file>export as zip> save it to your computer and put it here on the forum with attach files button below when entering message.
 
Upvote 0

Tranquil

Member
Licensed User
Longtime User
Hey Everybody.
Thanks for your help.

@Sagenut I followed every step more then often. Also searched for an installation guide on YT and made every single click the same in my sandbox.

I also tried it on a different system and within a sandboxed windows to be sure that there is no other IDE in conflict with my b4a installation.

This is the exported ZIP file from my freshly started "hello world" project.
 

Attachments

  • HelloWorld.zip
    8.8 KB · Views: 48
Last edited:
Upvote 0

teddybear

Well-Known Member
Licensed User
Hey Everybody.
Thanks for your help.

@Sagenut I followed every step more then often. Also searched for an installation guide on YT and made every single click the same in my sandbox.

I also tried it on a different system and within a sandboxed windows to be sure that there is no other IDE in conflict with my b4a installation.

This is the exported ZIP file from my freshly started "hello world" project.
What is the Java version? show us your paths configure in the IDE and the snapshot of Android SDK + Required Resources folder.

 
Upvote 0

Tranquil

Member
Licensed User
Longtime User
What is the Java version? show us your paths configure in the IDE and the snapshot of Android SDK + Required Resources folder.


@teddybear Thanks for your reply. Here we go: (In the meantime I also tried the Oracle JAVA 8 but this gives the same error.


1698833490089.png


1698833530344.png

1698833748850.png
 
Upvote 0

teddybear

Well-Known Member
Licensed User
Can you post a full log?
 
Upvote 0

Tranquil

Member
Licensed User
Longtime User
Can you post a full log?

Here we go:

B4X:
B4A Version: 12.50
Parsing code.    (0.00s)
    Java Version: 14
Building folders structure.    (0.01s)
Compiling code.    (0.00s)
Compiling layouts code.    (0.00s)
Organizing libraries.    (0.00s)
    (AndroidX SDK)
Compiling resources    (0.04s)
Linking resources    (0.21s)
Compiling debugger engine code.    (0.60s)
Compiling generated Java code.    (0.78s)
Finding libraries that need to be dexed.    (0.00s)
Dex code    Error
Error in test\Test\Objects\dexed:
java.nio.file.NoSuchFileException: test\Test\Objects\dexed
Error in test\Test\Objects\bin\classes\b4a\example\main$1.class:
java.nio.file.NoSuchFileException: test\Test\Objects\bin\classes\b4a\example\main$1.class
Error in test\Test\Objects\bin\classes\b4a\example\main$B4AMenuItemsClickListener.class:
java.nio.file.NoSuchFileException: test\Test\Objects\bin\classes\b4a\example\main$B4AMenuItemsClickListener.class
Error in test\Test\Objects\bin\classes\b4a\example\main$HandleKeyDelayed.class:
java.nio.file.NoSuchFileException: test\Test\Objects\bin\classes\b4a\example\main$HandleKeyDelayed.class
Error in test\Test\Objects\bin\classes\b4a\example\main$ResumeMessage.class:
java.nio.file.NoSuchFileException: test\Test\Objects\bin\classes\b4a\example\main$ResumeMessage.class
Error in test\Test\Objects\bin\classes\b4a\example\main$WaitForLayout.class:
java.nio.file.NoSuchFileException: test\Test\Objects\bin\classes\b4a\example\main$WaitForLayout.class
Error in test\Test\Objects\bin\classes\b4a\example\main.class:
java.nio.file.NoSuchFileException: test\Test\Objects\bin\classes\b4a\example\main.class
Error in test\Test\Objects\bin\classes\b4a\example\R$drawable.class:
java.nio.file.NoSuchFileException: test\Test\Objects\bin\classes\b4a\example\R$drawable.class
Error in test\Test\Objects\bin\classes\b4a\example\R$style.class:
java.nio.file.NoSuchFileException: test\Test\Objects\bin\classes\b4a\example\R$style.class
Error in test\Test\Objects\bin\classes\b4a\example\R.class:
java.nio.file.NoSuchFileException: test\Test\Objects\bin\classes\b4a\example\R.class
Error in test\Test\Objects\bin\classes\b4a\example\starter$1.class:
java.nio.file.NoSuchFileException: test\Test\Objects\bin\classes\b4a\example\starter$1.class
Error in test\Test\Objects\bin\classes\b4a\example\starter$2.class:
java.nio.file.NoSuchFileException: test\Test\Objects\bin\classes\b4a\example\starter$2.class
Error in test\Test\Objects\bin\classes\b4a\example\starter$starter_BR.class:
java.nio.file.NoSuchFileException: test\Test\Objects\bin\classes\b4a\example\starter$starter_BR.class
Error in test\Test\Objects\bin\classes\b4a\example\starter.class:
java.nio.file.NoSuchFileException: test\Test\Objects\bin\classes\b4a\example\starter.class
Error in test\Test\Objects\bin\classes\b4a\example\designerscripts\LS_layout.class:
java.nio.file.NoSuchFileException: test\Test\Objects\bin\classes\b4a\example\designerscripts\LS_layout.class
Error: Invalid output: test\Test\Objects\dexed
Output must be a .zip or .jar archive or an existing directory
Compilation failed
Exception in thread "main" java.lang.RuntimeException: com.android.tools.r8.CompilationFailedException: Compilation failed to complete
    at com.android.tools.r8.internal.vj.a(R8_3.3.20-dev+aosp1_dd4c01853fd917497aef2d09abff533f0d25b062517ea74449d40e1778a34753:98)
    at com.android.tools.r8.D8.main(R8_3.3.20-dev+aosp1_dd4c01853fd917497aef2d09abff533f0d25b062517ea74449d40e1778a34753:4)
Caused by: com.android.tools.r8.CompilationFailedException: Compilation failed to complete
    at Version.fakeStackEntry(Version_3.3.20-dev+aosp1.java:0)
    at com.android.tools.r8.internal.vj.a(R8_3.3.20-dev+aosp1_dd4c01853fd917497aef2d09abff533f0d25b062517ea74449d40e1778a34753:75)
    at com.android.tools.r8.internal.vj.a(R8_3.3.20-dev+aosp1_dd4c01853fd917497aef2d09abff533f0d25b062517ea74449d40e1778a34753:28)
    at com.android.tools.r8.internal.vj.a(R8_3.3.20-dev+aosp1_dd4c01853fd917497aef2d09abff533f0d25b062517ea74449d40e1778a34753:27)
    at com.android.tools.r8.BaseCommand$Builder.build(R8_3.3.20-dev+aosp1_dd4c01853fd917497aef2d09abff533f0d25b062517ea74449d40e1778a34753:2)
    at com.android.tools.r8.D8.a(R8_3.3.20-dev+aosp1_dd4c01853fd917497aef2d09abff533f0d25b062517ea74449d40e1778a34753:4)
    at com.android.tools.r8.internal.vj.a(R8_3.3.20-dev+aosp1_dd4c01853fd917497aef2d09abff533f0d25b062517ea74449d40e1778a34753:85)
    ... 1 more
Caused by: com.android.tools.r8.internal.f: Invalid output: test\Test\Objects\dexed
Output must be a .zip or .jar archive or an existing directory
    at com.android.tools.r8.internal.YS.a(R8_3.3.20-dev+aosp1_dd4c01853fd917497aef2d09abff533f0d25b062517ea74449d40e1778a34753:14)
    at com.android.tools.r8.internal.YS.error(R8_3.3.20-dev+aosp1_dd4c01853fd917497aef2d09abff533f0d25b062517ea74449d40e1778a34753:1)
    at com.android.tools.r8.internal.Ak.a(R8_3.3.20-dev+aosp1_dd4c01853fd917497aef2d09abff533f0d25b062517ea74449d40e1778a34753:17)
    at com.android.tools.r8.BaseCompilerCommand$Builder.f(R8_3.3.20-dev+aosp1_dd4c01853fd917497aef2d09abff533f0d25b062517ea74449d40e1778a34753:5)
    at com.android.tools.r8.D8Command$Builder.f(R8_3.3.20-dev+aosp1_dd4c01853fd917497aef2d09abff533f0d25b062517ea74449d40e1778a34753:313)
    at com.android.tools.r8.BaseCommand$Builder.a(R8_3.3.20-dev+aosp1_dd4c01853fd917497aef2d09abff533f0d25b062517ea74449d40e1778a34753:1)
    at com.android.tools.r8.internal.vj.a(R8_3.3.20-dev+aosp1_dd4c01853fd917497aef2d09abff533f0d25b062517ea74449d40e1778a34753:24)
    ... 4 more
    Suppressed: java.lang.RuntimeException: com.android.tools.r8.internal.f: Invalid output: test\Test\Objects\dexed
Output must be a .zip or .jar archive or an existing directory
        at com.android.tools.r8.internal.YS.a(R8_3.3.20-dev+aosp1_dd4c01853fd917497aef2d09abff533f0d25b062517ea74449d40e1778a34753:25)
        at com.android.tools.r8.BaseCommand$Builder.a(R8_3.3.20-dev+aosp1_dd4c01853fd917497aef2d09abff533f0d25b062517ea74449d40e1778a34753:3)
        ... 5 more
    Caused by: [CIRCULAR REFERENCE: com.android.tools.r8.internal.f: Invalid output: test\Test\Objects\dexed
Output must be a .zip or .jar archive or an existing directory]
 
Upvote 0
Top