Android Question compile error b4a beta 13

MbedAndroid

Well-Known Member
Licensed User
Longtime User
Error in D:\Àndroid\tools\..\extras\b4a_local\unpacked-guava-30.1.1.withoutlistenable-63767450911876\dex_v1\guava-30.1.1.withoutlistenable.zip:classes.dex:
Type com.google.common.annotations.Beta is defined multiple times: D:\Àndroid\tools\..\extras\b4a_local\unpacked-guava-30.1.1.withoutlistenable-63767450911876\dex_v1\guava-30.1.1.withoutlistenable.zip:classes.dex, D:\Àndroid\tools\..\extras\b4a_local\unpacked-com.google.guava-guava-63856894112000\dex_v1\com.google.guava-guava.zip:classes.dex
Compilation failed
Exception in thread "main" java.lang.RuntimeException: com.android.tools.r8.CompilationFailedException: Compilation failed to complete, origin: D:\Àndroid\tools\..\extras\b4a_local\unpacked-guava-30.1.1.withoutlistenable-63767450911876\dex_v1\guava-30.1.1.withoutlistenable.zip:classes.dex
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: D:\Àndroid\tools\..\extras\b4a_local\unpacked-guava-30.1.1.withoutlistenable-63767450911876\dex_v1\guava-30.1.1.withoutlistenable.zip:classes.dex
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.internal.po.b(R8_8.3.37_d0b8d9dfe8720e37c27d2233931d9d72dbd696ffd92111cc9b36e58b4baad1cc:99)
at com.android.tools.r8.D8.a(R8_8.3.37_d0b8d9dfe8720e37c27d2233931d9d72dbd696ffd92111cc9b36e58b4baad1cc:1041)
at com.android.tools.r8.D8.b(R8_8.3.37_d0b8d9dfe8720e37c27d2233931d9d72dbd696ffd92111cc9b36e58b4baad1cc:514)
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: com.android.tools.r8.internal.h: Type com.google.common.annotations.Beta is defined multiple times: D:\Àndroid\tools\..\extras\b4a_local\unpacked-guava-30.1.1.withoutlistenable-63767450911876\dex_v1\guava-30.1.1.withoutlistenable.zip:classes.dex, D:\Àndroid\tools\..\extras\b4a_local\unpacked-com.google.guava-guava-63856894112000\dex_v1\com.google.guava-guava.zip:classes.dex
at com.android.tools.r8.internal.X30.a(R8_8.3.37_d0b8d9dfe8720e37c27d2233931d9d72dbd696ffd92111cc9b36e58b4baad1cc:346)
at com.android.tools.r8.internal.pX.a(R8_8.3.37_d0b8d9dfe8720e37c27d2233931d9d72dbd696ffd92111cc9b36e58b4baad1cc:232)
at com.android.tools.r8.internal.pX.a(R8_8.3.37_d0b8d9dfe8720e37c27d2233931d9d72dbd696ffd92111cc9b36e58b4baad1cc:91)
at java.base/java.util.concurrent.ConcurrentHashMap.merge(ConcurrentHashMap.java:2056)
at com.android.tools.r8.internal.pX.a(R8_8.3.37_d0b8d9dfe8720e37c27d2233931d9d72dbd696ffd92111cc9b36e58b4baad1cc:32)
at com.android.tools.r8.graph.q4$a.d(R8_8.3.37_d0b8d9dfe8720e37c27d2233931d9d72dbd696ffd92111cc9b36e58b4baad1cc:6)
at com.android.tools.r8.dex.c.a(R8_8.3.37_d0b8d9dfe8720e37c27d2233931d9d72dbd696ffd92111cc9b36e58b4baad1cc:264)
at com.android.tools.r8.dex.c.a(R8_8.3.37_d0b8d9dfe8720e37c27d2233931d9d72dbd696ffd92111cc9b36e58b4baad1cc:222)
at com.android.tools.r8.dex.c.a(R8_8.3.37_d0b8d9dfe8720e37c27d2233931d9d72dbd696ffd92111cc9b36e58b4baad1cc:219)
at com.android.tools.r8.D8.a(R8_8.3.37_d0b8d9dfe8720e37c27d2233931d9d72dbd696ffd92111cc9b36e58b4baad1cc:809)
at com.android.tools.r8.D8.d(R8_8.3.37_d0b8d9dfe8720e37c27d2233931d9d72dbd696ffd92111cc9b36e58b4baad1cc:212)
at com.android.tools.r8.D8.c(R8_8.3.37_d0b8d9dfe8720e37c27d2233931d9d72dbd696ffd92111cc9b36e58b4baad1cc:163)
at com.android.tools.r8.internal.po.a(R8_8.3.37_d0b8d9dfe8720e37c27d2233931d9d72dbd696ffd92111cc9b36e58b4baad1cc:906)
... 6 more
 

asales

Expert
Licensed User
Longtime User
See this:
 
Upvote 0

MbedAndroid

Well-Known Member
Licensed User
Longtime User
exoplayer was already updated. With a other app i got this error
\tools\..\extras\b4a_remote\androidx\core\core\1.13.1\unpacked-core-1.13.1\
 
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
Last edited:
Upvote 0

MbedAndroid

Well-Known Member
Licensed User
Longtime User
reinstalled the android pack with 7 zip. Problem is now changed to
app nr 1: d:\Ã ndroid\tools\..\extras\b4a_remote\androidx\core\core\1.13.1\unpacked-core-1.13.1\res: error: failed to open directory: Het systeem kan het opgegeven bestand niet vinden. (2).

app nr 2: d:\Ã ndroid\tools\..\extras\b4a_remote\androidx\core\core\1.13.1\unpacked-core-1.13.1\res: error: failed to open directory: Het systeem kan het opgegeven bestand niet vinden. (2).

app nr 3 D:\Àndroid\tools\..\extras\b4a_local\unpacked-media3-exoplayer-1.2.0-63839092856000\res: error: failed to open directory: Het systeem kan het opgegeven bestand niet vinden. (2).

last app uses exoplayer. This is now updated to 3.2 including dependencies
 
Last edited:
Upvote 0

MbedAndroid

Well-Known Member
Licensed User
Longtime User
strangly some app's do compile. Starting a new project does compile. Some other app throw the à ndroid\tools\..\extras\b4a_remote\androidx\core\core\1.13.1\unpacked-core-1.13.1\res: error:
 
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
Upvote 0

MbedAndroid

Well-Known Member
Licensed User
Longtime User
solved.
1) almost every app needs now #MultiDex: True
2) renamed the directory from Android to an34.
3) reinstalled for the 3rth time the android files with 7.zip
did this all in 1 time, so i dont know which one was causing this problem. Could be like Manfred says a typo in the folder's name, even it was not visible with Explorer

But strangly some app's which are small did compile without any errors. Only the "bigger ones" where throwing errors, and those are using Firebase
 
Upvote 0

MbedAndroid

Well-Known Member
Licensed User
Longtime User
tried b4a 13 beta on other pc. Throws same errors as decribed above in first cases.
Seems to be only programs with firebase included.
Other programs compiles fine.
After a few attemps and without changing anything the compiler passes without any failure. As soon the compiler passes the first time all dex merging , all is ok and remains without compiler errors.
 
Upvote 0
Top