expo / eas-cli

Fastest way to build, submit, and update iOS and Android apps
https://docs.expo.dev/eas/
MIT License
828 stars 84 forks source link

EAS build failed when I run command eas build --platform android #1494

Closed digisidekickNoida closed 1 year ago

digisidekickNoida commented 2 years ago

Summary

I attempted to eas build --platform android my current project: https://expo.dev/accounts/mihirds/projects/payment/builds/3147b131-0b8e-4124-acf2-f6bab50e94e2 Inside console showing:- 🤖 Android build failed: Gradle build failed with unknown error. Please see logs for the "Run gradlew" phase.

Environment

info/build/index.js:2:141237) { code: 1, stdout: '', stderr: "'wmic' is not recognized as an internal or external command,\r\n" + 'operable program or batch file.\r\n', failed: true, signal: null, cmd: 'wmic os get Caption', timedOut: false }

Please specify your device/emulator/simulator platform, model and version

physical device

Error output

inside Run gradlew(https://expo.dev/accounts/mihirds/projects/payment/builds/3147b131-0b8e-4124-acf2-f6bab50e94e2)

Running './gradlew :app:bundleRelease' in /home/expo/workingdir/build/android Downloading https://services.gradle.org/distributions/gradle-7.3.3-all.zip 10 %. 20% 30 %. 40%. 50 %. 60%. 70% 80% 90% 100 % Welcome to Gradle 7.3.3! Here are the highlights of this release:

Reproducible demo or steps to reproduce from a blank project

import { StatusBar } from 'expo-status-bar'; import { StyleSheet, Text, View,Button } from 'react-native'; import PayuMoney from 'react-native-payumoney'; import { HashGenerator } from 'react-native-payumoney';

export default function App() {

const payData = { amount: '1.0', txnId: '1594976828726', productName: 'product_info', firstName: 'firstname', email: 'xyz@gmail.com', phone: '9639999999', merchantId: '5960507', key: 'QylhKRVd', successUrl: 'https://www.payumoney.com/mobileapp/payumoney/success.php', failedUrl: 'https://www.payumoney.com/mobileapp/payumoney/failure.php', isDebug: true, hash: '461d4002c1432b3393cf2bfaae7acc4c50601c66568fb49a4a125e060c3bfc0e489290e7c902750d5db3fc8be2f180daf4d534d7b9bef46fa0158a4c8a057b61', }

const paymentnow = () =>{ PayuMoney(payData).then((data) => { // Payment Success console.log(data) }).catch((e) => { // Payment Failed console.log(e) }) }

HashGenerator({ key: "QylhKRVd", amount: "10.0", email: "xyz@gmail.com", txnId: "1594976828726", productName: "product_info", firstName: "firstname", salt: "seVTUgzrgE", })

return (

Open up App.js to start working on your app!
Roshdy commented 2 years ago

+1

Rutvik17 commented 2 years ago

I am also seeing the same error running npx eas build --platform android --profile $EAS_PROFILE. Were you able to find a solution ?

fkranenburg commented 2 years ago

Same issue here

jorgearuv commented 2 years ago

Same issue here

expo-bot commented 1 year ago

Hi there! It looks like your issue requires a minimal reproducible example, but it is invalid or absent. Please prepare such an example and share it in a new issue.

The best way to get attention to your issue is to provide a clean and easy way for a developer to reproduce the issue on their own machine. Please do not provide your entire project, or a project with more code than is necessary to reproduce the issue.

A side benefit of going through the process of narrowing down the minimal amount of code needed to reproduce the issue is that you may get lucky and discover that the bug is due to a mistake in your application code that you can quickly fix on your own.

Resources