onejs / one

❶ One is a new React framework - target web and native with a single Vite plugin and fully shared code, so you can ship cross-platform nearly as easy as single-platform.
https://onestack.dev
Other
3.38k stars 68 forks source link

Project template does not build successfully for Android #237

Closed pandeiro closed 10 hours ago

pandeiro commented 2 weeks ago

Ran npx one, ran npm run dev, and then in another shell:

$ npm run android

> hello-android@1.1.330 android
> one run:android

› one run:android
🚧  The android platform is less tested and you might encounter unexpected errors. Let us know if anything breaks.
(node:65072) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
(Use `node --trace-deprecation ...` to show where the warning was created)

📝  Android package Learn more

✔ What would you like your Android package name to be? … com.pandeiro.oneexample

✔ Created native directory
✔ Updated package.json | no changes
✔ Finished prebuild
› Building app...
Configuration on demand is an incubating feature.

FAILURE: Build failed with an exception.

* What went wrong:
BUG! exception in phase 'semantic analysis' in source unit '_BuildScript_' Unsupported class file major version 67
> Unsupported class file major version 67

* 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 361ms
Error: /Users/mu/Repos/hello-android/android/gradlew app:assembleDebug -x lint -x test --configure-on-demand --build-cache -PreactNativeDevServerPort=8081 -PreactNativeArchitectures=arm64-v8a exited with non-zero code: 1
Error: /Users/mu/Repos/hello-android/android/gradlew app:assembleDebug -x lint -x test --configure-on-demand --build-cache -PreactNativeDevServerPort=8081 -PreactNativeArchitectures=arm64-v8a exited with non-zero code: 1
    at ChildProcess.completionListener (/Users/mu/Repos/hello-android/node_modules/@expo/spawn-async/build/spawnAsync.js:42:23)
    at Object.onceWrapper (node:events:633:26)
zetavg commented 2 weeks ago

Apologies for the inconvenience! Android support is still on the roadmap as one of the high priorities, and it's not likely to work for now. But we're working hard to bring it there.