Skip to content

Can't build APK #1

@maxenceconter

Description

@maxenceconter

Hello,

I'm trying to build the APK, but it seems I'm getting many errors. Do you know why? Is it because the client is outdated, or is it just me? Can you help me with this, please?
And how to modify the ip adresse for sending data to the server ?
image

Executing tasks: [:app:assembleDebug, :app:assembleDebugUnitTest, :app:assembleDebugAndroidTest] in project C:\Users\user\Desktop\L3MON-Mod-Client-main

> Task :app:createDebugVariantModel
> Task :app:preBuild UP-TO-DATE
> Task :app:preDebugBuild UP-TO-DATE
> Task :app:mergeDebugNativeDebugMetadata NO-SOURCE
> Task :app:compileDebugAidl NO-SOURCE
> Task :app:compileDebugRenderscript NO-SOURCE
> Task :app:generateDebugBuildConfig
> Task :app:javaPreCompileDebug
> Task :app:generateDebugResValues
> Task :app:checkDebugAarMetadata
> Task :app:mapDebugSourceSetPaths
> Task :app:generateDebugResources
> Task :app:packageDebugResources
> Task :app:mergeDebugResources
> Task :app:createDebugCompatibleScreenManifests
> Task :app:extractDeepLinksDebug
> Task :app:parseDebugLocalResources

> Task :app:processDebugMainManifest
package="com.play.fake" found in source AndroidManifest.xml: C:\Users\user\Desktop\L3MON-Mod-Client-main\app\src\main\AndroidManifest.xml.
Setting the namespace via a source AndroidManifest.xml's package attribute is deprecated.
Please instead set the namespace (or testNamespace) in the module's build.gradle file, as described here: https://developer.android.com/studio/build/configure-app-module#set-namespace
This migration can be done automatically using the AGP Upgrade Assistant, please refer to https://developer.android.com/studio/build/agp-upgrade-assistant for more information.

> Task :app:processDebugManifest
> Task :app:mergeDebugShaders
> Task :app:compileDebugShaders NO-SOURCE
> Task :app:generateDebugAssets UP-TO-DATE
> Task :app:mergeDebugAssets
> Task :app:compressDebugAssets
> Task :app:processDebugJavaRes NO-SOURCE
> Task :app:checkDebugDuplicateClasses
> Task :app:mergeDebugJavaResource
> Task :app:desugarDebugFileDependencies
> Task :app:mergeDebugJniLibFolders
> Task :app:mergeLibDexDebug
> Task :app:mergeDebugNativeLibs NO-SOURCE
> Task :app:stripDebugDebugSymbols NO-SOURCE
> Task :app:validateSigningDebug
> Task :app:writeDebugAppMetadata
> Task :app:writeDebugSigningConfigVersions
> Task :app:assembleDebugUnitTest UP-TO-DATE
> Task :app:preDebugAndroidTestBuild SKIPPED
> Task :app:compileDebugAndroidTestAidl NO-SOURCE
> Task :app:processDebugAndroidTestManifest FAILED
> Task :app:checkDebugAndroidTestAarMetadata FAILED
> Task :app:javaPreCompileDebugAndroidTest
> Task :app:generateDebugAndroidTestResValues
> Task :app:mergeDebugAndroidTestShaders
> Task :app:compileDebugAndroidTestShaders NO-SOURCE
> Task :app:generateDebugAndroidTestAssets UP-TO-DATE
> Task :app:mergeDebugAndroidTestAssets FAILED
> Task :app:processDebugAndroidTestJavaRes NO-SOURCE
> Task :app:mergeDebugAndroidTestJavaResource FAILED
Download https://dl.google.com/dl/android/maven2/com/android/tools/build/aapt2/7.4.2-8841542/aapt2-7.4.2-8841542.pom, took 62 ms (1,09 kB)
> Task :app:mergeDebugAndroidTestJniLibFolders
> Task :app:mergeDebugAndroidTestNativeLibs FAILED
> Task :app:checkDebugAndroidTestDuplicateClasses FAILED
> Task :app:desugarDebugAndroidTestFileDependencies FAILED
> Task :app:validateSigningDebugAndroidTest
> Task :app:writeDebugAndroidTestSigningConfigVersions
> Task :app:processDebugManifestForPackage
Download https://dl.google.com/dl/android/maven2/com/android/tools/build/aapt2/7.4.2-8841542/aapt2-7.4.2-8841542-windows.jar, took 170 ms (1,75 MB)
> Task :app:mergeExtDexDebug
> Task :app:processDebugResources

> Task :app:compileDebugJavaWithJavac
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.

> Task :app:dexBuilderDebug
> Task :app:bundleDebugClassesToCompileJar
> Task :app:mergeProjectDexDebug
> Task :app:packageDebug
> Task :app:createDebugApkListingFileRedirect
> Task :app:assembleDebug

FAILURE: Build completed with 7 failures.

1: Task failed with an exception.
-----------
* What went wrong:
Execution failed for task ':app:processDebugAndroidTestManifest'.
> Could not resolve all files for configuration ':app:debugAndroidTestRuntimeClasspath'.
   > Could not find androidx.play.ext:junit:1.1.3.
     Searched in the following locations:
       - https://dl.google.com/dl/android/maven2/androidx/play/ext/junit/1.1.3/junit-1.1.3.pom
       - https://repo.maven.apache.org/maven2/androidx/play/ext/junit/1.1.3/junit-1.1.3.pom
     Required by:
         project :app
   > Could not find androidx.play.espresso:espresso-core:3.4.0.
     Searched in the following locations:
       - https://dl.google.com/dl/android/maven2/androidx/play/espresso/espresso-core/3.4.0/espresso-core-3.4.0.pom
       - https://repo.maven.apache.org/maven2/androidx/play/espresso/espresso-core/3.4.0/espresso-core-3.4.0.pom
     Required by:
         project :app

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
==============================================================================

2: Task failed with an exception.
-----------
* What went wrong:
Execution failed for task ':app:checkDebugAndroidTestAarMetadata'.
> Could not resolve all files for configuration ':app:debugAndroidTestRuntimeClasspath'.
   > Could not find androidx.play.ext:junit:1.1.3.
     Searched in the following locations:
       - https://dl.google.com/dl/android/maven2/androidx/play/ext/junit/1.1.3/junit-1.1.3.pom
       - https://repo.maven.apache.org/maven2/androidx/play/ext/junit/1.1.3/junit-1.1.3.pom
     Required by:
         project :app
   > Could not find androidx.play.espresso:espresso-core:3.4.0.
     Searched in the following locations:
       - https://dl.google.com/dl/android/maven2/androidx/play/espresso/espresso-core/3.4.0/espresso-core-3.4.0.pom
       - https://repo.maven.apache.org/maven2/androidx/play/espresso/espresso-core/3.4.0/espresso-core-3.4.0.pom
     Required by:
         project :app

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
==============================================================================

3: Task failed with an exception.
-----------
* What went wrong:
Execution failed for task ':app:mergeDebugAndroidTestAssets'.
> Could not resolve all files for configuration ':app:debugAndroidTestRuntimeClasspath'.
   > Could not find androidx.play.ext:junit:1.1.3.
     Searched in the following locations:
       - https://dl.google.com/dl/android/maven2/androidx/play/ext/junit/1.1.3/junit-1.1.3.pom
       - https://repo.maven.apache.org/maven2/androidx/play/ext/junit/1.1.3/junit-1.1.3.pom
     Required by:
         project :app
   > Could not find androidx.play.espresso:espresso-core:3.4.0.
     Searched in the following locations:
       - https://dl.google.com/dl/android/maven2/androidx/play/espresso/espresso-core/3.4.0/espresso-core-3.4.0.pom
       - https://repo.maven.apache.org/maven2/androidx/play/espresso/espresso-core/3.4.0/espresso-core-3.4.0.pom
     Required by:
         project :app

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
==============================================================================

4: Task failed with an exception.
-----------
* What went wrong:
Execution failed for task ':app:mergeDebugAndroidTestJavaResource'.
> Could not resolve all files for configuration ':app:debugAndroidTestRuntimeClasspath'.
   > Could not find androidx.play.ext:junit:1.1.3.
     Searched in the following locations:
       - https://dl.google.com/dl/android/maven2/androidx/play/ext/junit/1.1.3/junit-1.1.3.pom
       - https://repo.maven.apache.org/maven2/androidx/play/ext/junit/1.1.3/junit-1.1.3.pom
     Required by:
         project :app
   > Could not find androidx.play.espresso:espresso-core:3.4.0.
     Searched in the following locations:
       - https://dl.google.com/dl/android/maven2/androidx/play/espresso/espresso-core/3.4.0/espresso-core-3.4.0.pom
       - https://repo.maven.apache.org/maven2/androidx/play/espresso/espresso-core/3.4.0/espresso-core-3.4.0.pom
     Required by:
         project :app

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
==============================================================================

5: Task failed with an exception.
-----------
* What went wrong:
Execution failed for task ':app:mergeDebugAndroidTestNativeLibs'.
> Could not resolve all files for configuration ':app:debugAndroidTestRuntimeClasspath'.
   > Could not find androidx.play.ext:junit:1.1.3.
     Searched in the following locations:
       - https://dl.google.com/dl/android/maven2/androidx/play/ext/junit/1.1.3/junit-1.1.3.pom
       - https://repo.maven.apache.org/maven2/androidx/play/ext/junit/1.1.3/junit-1.1.3.pom
     Required by:
         project :app
   > Could not find androidx.play.espresso:espresso-core:3.4.0.
     Searched in the following locations:
       - https://dl.google.com/dl/android/maven2/androidx/play/espresso/espresso-core/3.4.0/espresso-core-3.4.0.pom
       - https://repo.maven.apache.org/maven2/androidx/play/espresso/espresso-core/3.4.0/espresso-core-3.4.0.pom
     Required by:
         project :app

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
==============================================================================

6: Task failed with an exception.
-----------
* What went wrong:
Execution failed for task ':app:checkDebugAndroidTestDuplicateClasses'.
> Could not resolve all files for configuration ':app:debugAndroidTestRuntimeClasspath'.
   > Could not find androidx.play.ext:junit:1.1.3.
     Searched in the following locations:
       - https://dl.google.com/dl/android/maven2/androidx/play/ext/junit/1.1.3/junit-1.1.3.pom
       - https://repo.maven.apache.org/maven2/androidx/play/ext/junit/1.1.3/junit-1.1.3.pom
     Required by:
         project :app
   > Could not find androidx.play.espresso:espresso-core:3.4.0.
     Searched in the following locations:
       - https://dl.google.com/dl/android/maven2/androidx/play/espresso/espresso-core/3.4.0/espresso-core-3.4.0.pom
       - https://repo.maven.apache.org/maven2/androidx/play/espresso/espresso-core/3.4.0/espresso-core-3.4.0.pom
     Required by:
         project :app

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
==============================================================================

7: Task failed with an exception.
-----------
* What went wrong:
Execution failed for task ':app:desugarDebugAndroidTestFileDependencies'.
> Could not resolve all files for configuration ':app:debugAndroidTestRuntimeClasspath'.
   > Could not find androidx.play.ext:junit:1.1.3.
     Searched in the following locations:
       - https://dl.google.com/dl/android/maven2/androidx/play/ext/junit/1.1.3/junit-1.1.3.pom
       - https://repo.maven.apache.org/maven2/androidx/play/ext/junit/1.1.3/junit-1.1.3.pom
     Required by:
         project :app
   > Could not find androidx.play.espresso:espresso-core:3.4.0.
     Searched in the following locations:
       - https://dl.google.com/dl/android/maven2/androidx/play/espresso/espresso-core/3.4.0/espresso-core-3.4.0.pom
       - https://repo.maven.apache.org/maven2/androidx/play/espresso/espresso-core/3.4.0/espresso-core-3.4.0.pom
     Required by:
         project :app

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
==============================================================================

* Get more help at https://help.gradle.org

BUILD FAILED in 21s
46 actionable tasks: 46 executed

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions