-
Notifications
You must be signed in to change notification settings - Fork 39
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
java not found error even when not using gradle command #170
Comments
You'll need Java to run Android tasks, do you have it installed? |
Is that now required for all of the |
Yes, it has been since the beginning pretty much. It's possible something else was masking it. Java is required for many of the Gradle operations for Android and many of the Android operations ultimately need to make Gradle modifications |
Well, the following ymls worked without it 🤷♂️ vars:
npm_package_version:
platforms:
ios:
version: $npm_package_version
android:
versionName: $npm_package_version
incrementVersionCode: true
project:
json:
- file: src-capacitor/package.json
set:
version: $npm_package_version vars:
npm_package_version:
default: 1
CI_BUILD_NUMBER:
default: 1
platforms:
android:
versionName: $npm_package_version
versionCode: $CI_BUILD_NUMBER
copy:
- src: ../../trapeze/firebase/google-services-testing.json
dest: app/google-services.json
- src: ../../trapeze/icons/android
dest: ../android
xml:
- resFile: values/strings.xml
target: resources/string[@name="onesignal_notification_accent_color"]
replace: |
<string name="onesignal_notification_accent_color">FFFFB738</string>
ios:
version: $npm_package_version
buildNumber: $CI_BUILD_NUMBER
copy:
- src: ../../../trapeze/firebase/GoogleService-Info-testing.plist
dest: App/GoogleService-Info.plist
- src: ../../../trapeze/icons/ios
dest: ../../ios |
There have been a lot of changes and some of the Android operations may have moved to using the Gradle parser (which requires Java) to be more accurate. I don't recommend using older versions of Trapeze as a lot has changed. Make sure any build runners you have have Java installed. |
I'm using trapeze in my Bitbucket Pipeline and Appflow. It worked as expected for a few months but after upgrading from
6.0.10
to7.0.8
it failed most of the time in the Pipeline because of the following error:I'm using
node:14
image and didn't know I must have Java before the upgrade.I tested every single release since
6.0.10
and this issue started in the version6.0.12
.The text was updated successfully, but these errors were encountered: