Skip to content

I can't get npm run android to work after following the steps. #2

@Alder-dev

Description

@Alder-dev

I can't get npm run android to work after following the steps.

Hi, I'm following the installation steps. I have Unity 6000.0, and I followed all the instructions, but it won't run after that.

Error code:

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':app:processDebugMainManifest'.

Incorrect package="com.animaliaar" found in source AndroidManifest.xml: E:\AnimaliaAR\App\AnimaliaAR\android\app\src\main\AndroidManifest.xml.
Setting the namespace via the package attribute in the source AndroidManifest.xml is no longer supported.
Recommendation: remove package="com.animaliaar" from the source AndroidManifest.xml: E:\AnimaliaAR\App\AnimaliaAR\android\app\src\main\AndroidManifest.xml.

  • 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.

Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0.

You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.

For more on this, please refer to https://docs.gradle.org/8.14.3/userguide/command_line_interface.html#sec:command_line_warnings in the Gradle documentation.

BUILD FAILED in 4m 42s
346 actionable tasks: 26 executed, 1 from cache, 319 up-to-date
Error: E:\AnimaliaAR\App\AnimaliaAR\android\gradlew.bat app:assembleDebug -x lint -x test --configure-on-demand --build-cache -PreactNativeDevServerPort=8081 -PreactNativeArchitectures=arm64-v8a,armeabi-v7a exited with non-zero code: 1
Error: E:\AnimaliaAR\App\AnimaliaAR\android\gradlew.bat app:assembleDebug -x lint -x test --configure-on-demand --build-cache -PreactNativeDevServerPort=8081 -PreactNativeArchitectures=arm64-v8a,armeabi-v7a exited with non-zero code: 1
at ChildProcess.completionListener (E:\AnimaliaAR\App\AnimaliaAR\node_modules@expo\spawn-async\src\spawnAsync.ts:67:13)
at Object.onceWrapper (node:events:633:26)
at ChildProcess.emit (node:events:518:28)
at ChildProcess.cp.emit (E:\AnimaliaAR\App\AnimaliaAR\node_modules\cross-spawn\lib\enoent.js:34:29)
at maybeClose (node:internal/child_process:1101:16)
at Process.ChildProcess._handle.onexit (node:internal/child_process:304:5)
...
at spawnAsync (E:\AnimaliaAR\App\AnimaliaAR\node_modules@expo\spawn-async\src\spawnAsync.ts:28:21)
at spawnGradleAsync (E:\AnimaliaAR\App\AnimaliaAR\node_modules\expo\node_modules@expo\cli\src\start\platforms\android\gradle.ts:134:28)
at assembleAsync (E:\AnimaliaAR\App\AnimaliaAR\node_modules\expo\node_modules@expo\cli\src\start\platforms\android\gradle.ts:83:16)
at runAndroidAsync (E:\AnimaliaAR\App\AnimaliaAR\node_modules\expo\node_modules@expo\cli\src\run\android\runAndroidAsync.ts:62:24)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions