Error with compiling APK

Hello I am here to discuss my problem with compiling my application however ever the application have no errors in blocks
The message is


Kodular is unable to compile this project.
The compiler error output was
________Preparing application icon
________Creating animation xml
________Creating fragment xml
________Creating listview xml in res/layout/..
________Creating listview xml in res/layout-v21/..
________Creating xml in res/drawable/..
________Creating splash png in res/drawable/..
________Creating colors xml
________Creating styles xml
________Creating drawables xml v21
________Checking for firebase
________________Firebase components found.
________________Firebase config file successfully added.
________Creating provider_path xml
________Creating network_security_config xml
________Generating adaptive icon file
________Generating round adaptive icon file
________Generating adaptive icon background file
________Generating manifest file
________Attaching native libraries
________Attaching Android Archive (AAR) libraries
________Attaching component assets
________Invoking AAPT
AAPT time: 1.508 seconds
________Compiling source files
(compiling io/kodular/nasrgomaa40/Aywa/Screen2.yail to io.kodular.nasrgomaa40.Aywa.Screen2)
(compiling io/kodular/nasrgomaa40/Aywa/Screen3.yail to io.kodular.nasrgomaa40.Aywa.Screen3)
(compiling io/kodular/nasrgomaa40/Aywa/Screen1.yail to io.kodular.nasrgomaa40.Aywa.Screen1)
(compiling io/kodular/nasrgomaa40/Aywa/profile.yail to io.kodular.nasrgomaa40.Aywa.profile)
(compiling /tmp/runtime6150389182057162836.scm to com.google.youngandroid.runtime)
Kawa compile time: 44.21 seconds
________Invoking DX
DX time: 21.321 seconds
________Invoking ApkBuilder
com.android.sdklib.build.ApkCreationException: Failed to add /tmp/1657604988573_0.26695586436288665-0/youngandroidproject/../build/tmp/classes3.dex
YAIL compiler - ApkBuilder failed

.
.

Please any one help me to solve this problem

Most probably you are have extensions that use the same libraries. Which extensions do you use in your project?

1 Like

The error occured after I added this two extensions


Remove one of them and see if app compiles

Ok I’ll try

I tried to remove it and compile the app but the error still there and this all my extensions
Screenshot (3)
Screenshot (2)

I had also the same problem after using the fire messaging extension. I removed that extension and the error was solved…

But I want to use this extension to push notifications via firebase is there is any other methods to do the same thing .

try onesignal easy

Most probably the error is caused by OnesignalFix and FCM extensions since both uses Firebase Messaging library. If you want to use FCM for notifications then why do you need Onesignal Fix extension? Or you want to use FCM or Onesignal both? AFAIK, the FCM you are using does not seem to be working.

Did you mean I should delete one of them .
But the fcm extension is working well I tested it on two apks the notifications sent well.

I only attached the app to one signal and I only con send notifications from the website not from the app ,
SO I don’t know the method to send it from the app and send it individually to a specific user

Hello friends I also have the same error when trying to compile, I do not use firebase in my project:

Kodular is unable to compile this project.
The compiler error output was
________Preparing application icon
________Creating animation xml
________Creating fragment xml
________Creating listview xml in res/layout/…
________Creating listview xml in res/layout-v21/…
________Creating xml in res/drawable/…
________Creating splash png in res/drawable/…
________Creating colors xml
________Creating styles xml
________Creating drawables xml v21
________Checking for firebase
________Creating provider_path xml
________Creating network_security_config xml
________Generating adaptive icon file
________Generating round adaptive icon file
________Generating adaptive icon background file
________Generating manifest file
________Attaching native libraries
________Attaching Android Archive (AAR) libraries
________Attaching component assets
________Invoking AAPT
AAPT time: 1.287 seconds
________Compiling source files
(compiling io/kodular/marlonescalona/VzlJuly2/Screen3.yail to io.kodular.marlonescalona.VzlJuly2.Screen3)
(compiling io/kodular/marlonescalona/VzlJuly2/Screen1.yail to io.kodular.marlonescalona.VzlJuly2.Screen1)
(compiling /tmp/runtime1516273123127933139.scm to com.google.youngandroid.runtime)
Kawa compile time: 3.422 seconds
________Invoking DX
YAIL compiler - DX execution failed.
.

@dora_paz @Sumit1334
My problem is solved and the app is had been compiled successfully after I deleted one signal fix extension,
but when I tried to open the apk on cell phone it closes immediately after opening it .
.
And when I test it with companion it gives me this message :point_down:

I don’t understand what is the problem however the fire cloud messaging extension works well with other two APKs that I created before
Please I need help

2 posts were split to a new topic: Not able to export aab or apk