Android Question Can't use desugar

Dianzoa

Active Member
Licensed User
I have not knowledge of Java, is there any parameters I miss?

1628270238546.png
Can
 

drgottjr

Expert
Licensed User
Longtime User
1) where is your Desugar_deploy.jar file?

2) for your parameters, type "java" at the C:\Users\HP\OneDrive|Documents prompt. you're missing the "-jar" option.

this is a windows issue, nothing really to do with java.
 
Upvote 0

Dianzoa

Active Member
Licensed User
1) where is your Desugar_deploy.jar file?

2) for your parameters, type "java" at the C:\Users\HP\OneDrive|Documents prompt. you're missing the "-jar" option.

this is a windows issue, nothing really to do with java.
1- In the folder where the command ran.
2 - Makes no difference adding -jar
 
Upvote 0

Dianzoa

Active Member
Licensed User
Searching on google, maybe the jar is a non executable?
A non-executable JAR is simply a JAR file that doesn't have a Main-Class defined in the manifest file. As we'll see later, we can still run a main class that's contained in the JAR file itself.
 
Upvote 0

Dianzoa

Active Member
Licensed User
Finally I manage to make it work like so
B4X:
java -jar Desugar_deploy.jar --input AppCompat.androidx.aar --output a.jar --bootclasspath_entry C:\android\platforms\android-30\android.jar

But now, I can't add the generated .jar file back to the .aar file
 
Upvote 0
Top