Deenu488 / CodeAssist-Unofficial

GNU General Public License v3.0
129 stars 27 forks source link

aab building throwing error #27

Open Tanzin01 opened 2 weeks ago

Tanzin01 commented 2 weeks ago

Regular build works fine but aab build throwing this

> Task :app:clean
> Task :app:formatKotlin
> Task :app:formatJava
> Task :app:checkLibraries
> Task :app:assembleLibraries
> Task :app:mergeManifest
> Task :app:generateReleaseBuildConfig
> Task :app:generateFirebaseConfig
> Task :app:crashlytics
> Task :app:mergeResources
> Task :app:generateViewBinding
> Task :app:symbolProcessor
> Task :app:compileKotlin
Loading kotlin compiler plugins: []
OTHER:  Using Kotlin home directory dist/kotlinc 
OTHER:  Scripting plugin will not be loaded: not all required jars are present in the classpath (missing files: [./kotlin-scripting-compiler.jar, ./kotlin-scripting-compiler-impl.jar, ./kotlinx-coroutines-core-jvm.jar, ./kotlin-scripting-common.jar, ./kotlin-scripting-jvm.jar, ./kotlin-scripting-js.jar, ./js.engines.jar]) 
OTHER:  Using JVM IR backend 
OTHER:  Configuring the compilation environment 
MANDATORY_WARNING:  Classpath entry points to a non-existent location: /storage/emulated/0/Android/data/org.codeassist.unofficial/files/Projects/Wifi on or off guide/app/build/bin/java/classes 
NOTE:  Output:
/storage/emulated/0/Android/data/org.codeassist.unofficial/files/Projects/Wifi on or off guide/app/build/bin/kotlin/classes/META-INF/app.kotlin_module
Sources:

> Task :app:compileJavaWithJavac
> Task :app:mergeDexWithD8
ERROR:  The type kotlin.internal.jdk7.JDK7PlatformImplementations$ReflectSdkVersion is defined multiple times in multiple jars. There can only be one class with the same package and name. Please locate the following jars and determine which class is appropriate to keep. 

Files: 

path: /storage/emulated/0/Android/data/org.codeassist.unofficial/files/Projects/Wifi on or off guide/app/build/libraries/implementation_libs/85f31b175306770754b114fd3b1beae3/classes.dex

path: /storage/emulated/0/Android/data/org.codeassist.unofficial/files/Projects/Wifi on or off guide/app/build/libraries/implementation_libs/73d0db6af7445088858d51a1a6843b75/classes.dex

ERROR:  com.android.tools.r8.CompilationFailedException: Compilation failed to complete, origin: /storage/emulated/0/Android/data/org.codeassist.unofficial/files/Projects/Wifi on or off guide/app/build/libraries/implementation_libs/85f31b175306770754b114fd3b1beae3/classes.dex

Not related but does the deafult build builds release build? Since no release button

Tanzin01 commented 2 weeks ago

Btw deafult project. Only used few textviews

Deenu488 commented 2 weeks ago

@Tanzin01 Add into exclude classpath in .idea

85f31b175306770754b114fd3b1beae3

Tanzin01 commented 2 weeks ago

Okayy