Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doesn't run on android when running out of the box boilerplate. #2598

Closed
Kirk-Str opened this issue Jan 5, 2024 · 0 comments
Closed

Doesn't run on android when running out of the box boilerplate. #2598

Kirk-Str opened this issue Jan 5, 2024 · 0 comments
Labels

Comments

@Kirk-Str
Copy link

Kirk-Str commented Jan 5, 2024

Describe the bug

I am getting following error when running the npx react-native run-android

Env: Windows
SKD and android studio all installed as well.

PS D:\Workspace\battpro\ignitetest\beettle> npx android
npm ERR! could not determine executable to run

npm ERR! A complete log of this run can be found in: C:\Users\hippopotomus\AppData\Local\npm-cache_logs\2024-01-05T06_38_02_626Z-debug-0.log
PS D:\Workspace\battpro\ignitetest\beettle> npx react-native run-android
info JS server already running.
info Installing the app...

Configure project :app
Ôä╣´©Å Applying gradle plugin 'expo-dev-launcher-gradle-plugin' (expo-dev-launcher@2.4.14)

Configure project :expo

Using expo modules

  • expo-application (5.4.0)
  • expo-constants (14.4.2)
  • expo-dev-client (2.4.12)
  • expo-dev-launcher (2.4.14)
  • expo-dev-menu (3.2.2)
  • expo-file-system (15.4.5)
  • expo-font (11.6.0)
  • expo-json-utils (0.7.1)
  • expo-keep-awake (12.3.0)
  • expo-localization (14.5.0)
  • expo-manifests (0.7.2)
  • expo-modules-core (1.5.12)
  • expo-modules-core$android-annotation (1.5.12)
  • expo-modules-core$android-annotation-processor (1.5.12)
  • expo-splash-screen (0.20.5)

Configure project :react-native-reanimated
No AAR for react-native-reanimated found. Attempting to build from source.
Android gradle plugin: 7.4.2
Gradle: 8.0.1
WARNING:Software Components will not be created automatically for Maven publishing from Android Gradle Plugin 8.0. To opt-in to the future behavior, set the Gradle property android.disableAutomaticComponentCreation=true in the gradle.properties file or use the new publishing DSL.

The Kotlin Gradle plugin was loaded multiple times in different subprojects, which is not supported and may break the build.
This might happen in subprojects that apply the Kotlin plugins with the Gradle 'plugins { ... }' DSL if they specify explicit versions, even if the versions are equal.
Please add the Kotlin plugin to the common parent project or the root project, then remove the versions in the subprojects.
If the parent project does not need the plugin, add 'apply false' to the plugin line.
See: https://docs.gradle.org/current/userguide/plugins.html#sec:subprojects_plugins_dsl
The Kotlin plugin was loaded in the following projects: ':expo', ':expo-modules-core', ':react-native-gesture-handler', ':react-native-safe-area-context', ...

Task :expo-modules-core$android-annotation:compileKotlin
'compileJava' task (current target is 11) and 'compileKotlin' task (current target is 19) jvm target compatibility should be set to the same Java version.
Consider using JVM toolchain: https://kotl.in/gradle/jvm/toolchain

Task :expo-modules-core$android-annotation-processor:compileKotlin
'compileJava' task (current target is 11) and 'compileKotlin' task (current target is 19) jvm target compatibility should be set to the same Java version.
Consider using JVM toolchain: https://kotl.in/gradle/jvm/toolchain

Task :expo-file-system:processDebugManifest
D:\Workspace\battpro\ignitetest\beettle\node_modules\expo-file-system\android\src\main\AndroidManifest.xml:6:9-8:20 Warning:
provider#expo.modules.filesystem.FileSystemFileProvider@android:authorities was tagged at AndroidManifest.xml:6 to replace other declarations but no other declaration present

Task :expo-modules-core:processDebugManifest
D:\Workspace\battpro\ignitetest\beettle\node_modules\expo-modules-core\android\src\main\AndroidManifest.xml:8:9-11:45 Warning:
meta-data#com.facebook.soloader.enabled@android:value was tagged at AndroidManifest.xml:8 to replace other declarations but no other declaration present

Task :react-native-async-storage_async-storage:processDebugManifest
package="com.reactnativecommunity.asyncstorage" found in source AndroidManifest.xml: D:\Workspace\battpro\ignitetest\beettle\node_modules@react-native-async-storage\async-storage\android\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 :react-native-gesture-handler:processDebugManifest
package="com.swmansion.gesturehandler" found in source AndroidManifest.xml: D:\Workspace\battpro\ignitetest\beettle\node_modules\react-native-gesture-handler\android\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 :react-native-reanimated:processDebugManifest
package="com.swmansion.reanimated" found in source AndroidManifest.xml: D:\Workspace\battpro\ignitetest\beettle\node_modules\react-native-reanimated\android\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 :react-native-safe-area-context:processDebugManifest
package="com.th3rdwave.safeareacontext" found in source AndroidManifest.xml: D:\Workspace\battpro\ignitetest\beettle\node_modules\react-native-safe-area-context\android\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 :react-native-screens:processDebugManifest
package="com.swmansion.rnscreens" found in source AndroidManifest.xml: D:\Workspace\battpro\ignitetest\beettle\node_modules\react-native-screens\android\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 :shopify_flash-list:processDebugManifest
package="com.shopify.reactnative.flash_list" found in source AndroidManifest.xml: D:\Workspace\battpro\ignitetest\beettle\node_modules@shopify\flash-list\android\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:processDebugMainManifest
D:\Workspace\battpro\ignitetest\beettle\android\app\src\debug\AndroidManifest.xml:6:5-162 Warning:
application@android:usesCleartextTraffic was tagged at AndroidManifest.xml:6 to replace other declarations but no other declaration present
D:\Workspace\battpro\ignitetest\beettle\android\app\src\debug\AndroidManifest.xml:21:9-30:20 Warning:
provider#expo.modules.filesystem.FileSystemFileProvider@android:authorities was tagged at AndroidManifest.xml:21 to replace other declarations but no other declaration present

Task :expo-modules-core:compileDebugKotlin FAILED
212 actionable tasks: 212 executed

info 💡 Tip: Make sure that you have set up your development environment correctly, by running react-native doctor. To read more about doctor command visit: https://github.com/react-native-community/cli/blob/main/packages/cli-doctor/README.md#doctor

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':expo-modules-core:compileDebugKotlin'.

Could not resolve all files for configuration ':expo-modules-core:debugCompileClasspath'.
Failed to transform expo-modules-core$android-annotation.jar (project :expo-modules-core$android-annotation) to match attributes {artifactType=android-classes-jar, org.gradle.category=library, org.gradle.dependency.bundling=external, org.gradle.jvm.environment=standard-jvm, org.gradle.jvm.version=11, org.gradle.libraryelements=jar, org.gradle.usage=java-api, org.jetbrains.kotlin.platform.type=jvm}.
> Execution failed for JetifyTransform: D:\Workspace\battpro\ignitetest\beettle\node_modules\expo-modules-core\android-annotation\build\libs\expo-modules-core$android-annotation-1.1.1.jar.
> Failed to transform 'D:\Workspace\battpro\ignitetest\beettle\node_modules\expo-modules-core\android-annotation\build\libs\expo-modules-core$android-annotation-1.1.1.jar' using Jetifier. Reason: IllegalArgumentException, message: Unsupported class file major version 63. (Run with --stacktrace for more details.)
Suggestions:
- Check out existing issues at https://issuetracker.google.com/issues?q=componentid:460323&s=modified_time:desc, it's possible that this issue has already been filed there.
- If this issue has not been filed, please report it at https://issuetracker.google.com/issues/new?component=460323 (run with --stacktrace and provide a stack trace if possible).

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

BUILD FAILED in 1m 23s
error Failed to install the app.
info Run CLI with --verbose flag for more details.

Ignite version

9.3.0

Additional info

Need to install the following packages:
ignite-cli@9.3.0
Ok to proceed? (y) y
System
platform win32
arch x64
cpu 8 cores Intel(R) Core(TM) i7-7700HQ CPU @ 2.80GHz
directory Hxxxx D:\Workspace\xxxx\ignitetest\xxxx

JavaScript (and globally-installed packages)
node 18.17.1 D:\Program Files\nodejs\node.EXE
npm 9.6.7 D:\Program Files\nodejs\npm.CMD
expo-cli 6.3.10
firebase-tools 12.5.4
rimraf 5.0.1
yarn - not installed
pnpm - not installed
bun - not installed
expo 49.0.21 managed

Ignite
ignite-cli 9.3.0 C:\Users\XXX\AppData\Local\npm-cache_npx\e31027f3785124a8\node_modules.bin\ignite.CMD
ignite src build C:\Users\XXX\AppData\Local\npm-cache_npx\e31027f3785124a8\node_modules\ignite-cli\build

Android
java 19.0.2 C:\Program Files\Common Files\Oracle\Java\javapath\java.EXE
android home - D:\Program-Meta\Android

Tools
git git version 2.42.0.windows.1 D:\Program Files\Git\cmd\git.EXE

@Kirk-Str Kirk-Str added the bug label Jan 5, 2024
@Kirk-Str Kirk-Str closed this as not planned Won't fix, can't repro, duplicate, stale Jan 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant