Строительное приложение Expo Managed в профиле производства Получение этой ошибкиAndroid

Форум для тех, кто программирует под Android
Ответить Пред. темаСлед. тема
Anonymous
 Строительное приложение Expo Managed в профиле производства Получение этой ошибки

Сообщение Anonymous »

Я нахожусь в управляемом рабочем процессе, создавая приложение Expo в профиле производства Получив эту ошибку
Пожалуйста, помогите мне исправить это, так как я пробовал все возможные исследования со всеми версиями зависимостей, которые я не знаю, как это исправить, пожалуйста, любые, кто знает, дайте мне знать < /p>
Running 'gradlew :app:assembleRelease' in /home/expo/workingdir/build/android
Welcome to Gradle 8.10.2!
Here are the highlights of this release:
- Support for Java 23
- Faster configuration cache
- Better configuration cache reports
For more details see https://docs.gradle.org/8.10.2/release-notes.html
To honour the JVM settings for this build a single-use Daemon process will be forked. For more on this, please refer to https://docs.gradle.org/8.10.2/userguid ... the_daemon in the Gradle documentation.
Daemon will be stopped at the end of the build
> Task :gradle-plugin:settings-plugin:checkKotlinGradlePluginConfigurationErrors
> Task :gradle-plugin:shared:checkKotlinGradlePluginConfigurationErrors
> Task :gradle-plugin:settings-plugin:pluginDescriptors
> Task :gradle-plugin:settings-plugin:processResources
> Task :gradle-plugin:shared:processResources NO-SOURCE
> Task :gradle-plugin:shared:compileKotlin
> Task :gradle-plugin:shared:compileJava NO-SOURCE
> Task :gradle-plugin:shared:classes UP-TO-DATE
> Task :gradle-plugin:shared:jar
> Task :gradle-plugin:settings-plugin:compileKotlin
> Task :gradle-plugin:settings-plugin:compileJava NO-SOURCE
> Task :gradle-plugin:settings-plugin:classes
> Task :gradle-plugin:settings-plugin:jar
> Task :gradle-plugin:react-native-gradle-plugin:checkKotlinGradlePluginConfigurationErrors
> Task :expo-dev-launcher-gradle-plugin:checkKotlinGradlePluginConfigurationErrors
> Task :expo-dev-launcher-gradle-plugin:pluginDescriptors
> Task :expo-dev-launcher-gradle-plugin:processResources
> Task :gradle-plugin:react-native-gradle-plugin:pluginDescriptors
> Task :gradle-plugin:react-native-gradle-plugin:processResources
> Task :gradle-plugin:react-native-gradle-plugin:compileKotlin
> Task :gradle-plugin:react-native-gradle-plugin:compileJava NO-SOURCE
> Task :gradle-plugin:react-native-gradle-plugin:classes
> Task :gradle-plugin:react-native-gradle-plugin:jar
> Task :expo-dev-launcher-gradle-plugin:compileKotlin
> Task :expo-dev-launcher-gradle-plugin:compileJava NO-SOURCE
> Task :expo-dev-launcher-gradle-plugin:classes
> Task :expo-dev-launcher-gradle-plugin:jar
> Configure project :app
ℹ️ Applying gradle plugin 'expo-dev-launcher-gradle-plugin' ([email protected])
FAILURE: Build completed with 2 failures.
1: Task failed with an exception.
-----------
* Where:
Build file '/home/expo/workingdir/build/node_modules/expo-crypto/android/build.gradle' line: 3
* What went wrong:
Plugin [id: 'expo-module-gradle-plugin'] was not found in any of the following sources:
- Gradle Core Plugins (not a core plugin. For more available plugins, please refer to https://docs.gradle.org/8.10.2/userguid ... rence.html in the Gradle documentation.)
- Included Builds (None of the included builds contain this plugin)
- Plugin Repositories (plugin dependency must include a version number for this source)
* 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.
==============================================================================
2: Task failed with an exception.
-----------
* Where:
Script '/home/expo/workingdir/build/node_modules/expo-modules-core/android/ExpoModulesCorePlugin.gradle' line: 95
* What went wrong:
A problem occurred configuring project ':expo'.
> Could not get unknown property 'release' for SoftwareComponent container of type org.gradle.api.internal.component.DefaultSoftwareComponentContainer.
* 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 1m 25s
18 actionable tasks: 18 executed
Error: Gradle build failed with unknown error. See logs for the "Run gradlew" phase for more information.
< /code>
Это мой пакет.json < /p>
{
"name": "ohhgod",
"main": "expo-router/entry",
"version": "1.0.0",
"scripts": {
"start": "expo start",
"push": "npx drizzle-kit push",
"android": "expo start --android",
"ios": "expo start --ios",
"web": "expo start --web",
"test": "jest --watchAll",
"lint": "expo lint"
},
"jest": {
"preset": "jest-expo"
},
"dependencies": {
"@clerk/clerk-expo": "^2.9.12",
"@clerk/express": "^1.4.6",
"@expo/vector-icons": "^14.0.2",
"@gorhom/bottom-sheet": "^5.1.2",
"@neondatabase/serverless": "^1.0.0",
"@react-native-async-storage/async-storage": "^1.23.1",
"@react-navigation/bottom-tabs": "^7.2.0",
"@react-navigation/native": "^7.0.14",
"@stripe/stripe-react-native": "^0.38.6",
"drizzle-kit": "^0.31.0",
"drizzle-orm": "^0.42.0",
"expo": "~52.0.0",
"expo-blur": "~14.0.3",
"expo-constants": "~17.0.8",
"expo-dev-client": "~5.0.20",
"expo-device": "~7.0.3",
"expo-font": "~13.0.4",
"expo-haptics": "~14.0.1",
"expo-image-picker": "~16.0.6",
"expo-linking": "~7.0.5",
"expo-location": "~18.0.10",
"expo-notifications": "~0.29.14",
"expo-router": "^4.0.17",
"expo-secure-store": "^14.0.1",
"expo-splash-screen": "~0.29.24",
"expo-status-bar": "~2.0.1",
"expo-stripe": "^1.0.0",
"expo-symbols": "~0.2.2",
"expo-system-ui": "~4.0.9",
"expo-web-browser": "~14.0.2",
"firebase": "^11.6.0",
"nativewind": "^4.1.23",
"react": "^18.0.0",
"react-dom": "^18.0.0",
"react-native": "0.76.9",
"react-native-gesture-handler": "~2.20.2",
"react-native-get-random-values": "^1.11.0",
"react-native-google-places-autocomplete": "^2.5.7",
"react-native-maps": "1.18.0",
"react-native-maps-directions": "^1.9.0",
"react-native-maps-expo-plugin": "^1.0.4",
"react-native-modal": "^14.0.0-rc.1",
"react-native-paper": "^5.13.3",
"react-native-progress": "^5.0.1",
"react-native-ratings": "^8.1.0",
"react-native-reanimated": "^3.16.2",
"react-native-safe-area-context": "^4.12.0",
"react-native-screens": "~4.4.0",
"react-native-swiper": "^1.6.0",
"react-native-web": "~0.19.13",
"react-native-webview": "13.12.5",
"stripe": "^18.0.0",
"tailwindcss": "^3.4.17",
"zustand": "^5.0.3",
"expo-modules-core": "~2.2.3",
"expo-application": "~6.0.2"
},
"devDependencies": {
"@babel/core": "^7.25.2",
"@types/jest": "^29.5.12",
"@types/react": "^18.0.0",
"@types/react-test-renderer": "^18.0.0",
"babel-plugin-module-resolver": "^5.0.2",
"jest": "^29.2.1",
"jest-expo": "~52.0.6",
"react-test-renderer": "^18.0.0",
"typescript": "^5.3.3"
},
"private": true
}
< /code>
Это app.config.js < /p>
import 'dotenv/config';

const isProduction = process.env.EAS_BUILD_PROFILE === 'production';

const MAPS_KEY = isProduction
? process.env.EXPO_PUBLIC_GOOGLE_API_KEY
: process.env.EXPO_PUBLIC_GOOGLE_API_KEY_DEV;

const STRIPE_KEY = process.env.EXPO_PUBLIC_STRIPE_API_KEY;

export default {
expo: {
sdkVersion: "52.0.46",
name: "GlideX",
slug: "glidex",
platforms: ["ios", "android"],
version: "1.0.4",
orientation: "portrait",
icon: "./assets/images/icon.png",
userInterfaceStyle: "automatic",
scheme: "myapp",
splash: {
image: "./assets/images/splash.png",
resizeMode: "cover",
backgroundColor: "#000000"
},
updates: {
enabled: true,
fallbackToCacheTimeout: 0
},
assetBundlePatterns: ["**/*"],
ios: {
supportsTablet: true,
bundleIdentifier: "com.gauravvbh.glidex",
config: {
googleMapsApiKey: MAPS_KEY
},
infoPlist: {
NSLocationWhenInUseUsageDescription: "We need your location to show it on the map"
}
},
android: {
package: "com.gauravvbh.glidex",
hermesEnabled: true,
adaptiveIcon: {
foregroundImage: "./assets/images/adaptive-icon.png",
backgroundColor: "#ffffff"
},
permissions: [
"ACCESS_FINE_LOCATION",
"ACCESS_COARSE_LOCATION",
"READ_EXTERNAL_STORAGE",
"WRITE_EXTERNAL_STORAGE"
],
config: {
googleMaps: {
apiKey: MAPS_KEY
}
}
},
plugins: [
[
"react-native-maps-expo-plugin",
{
googleMapsApiKey: MAPS_KEY
}
],
[
"expo-notifications",
{
icon: "./assets/images/notification_icon.png",
color: "#ffffff",
defaultChannel: "default",
sounds: [
"./assets/notification_sound.wav",
"./assets/notification_sound_other.wav"
],
enableBackgroundRemoteNotifications: false
}
],
[
"expo-router",
{
origin: "https://glidex.expo.app"
}
],
[
"expo-image-picker",
{
photosPermission: "The app accesses your photos to let you share them with your friends.",
cameraPermission: "The app accesses your camera to allow you to take photos."
}
],
[
"@stripe/stripe-react-native",
{
enableGooglePay: true,
publishableKey: STRIPE_KEY
}
]
],
extra: {
eas: {
projectId: "43ad45d8-f2b4-456e-a48f-cfb48faeb6aa"
},
googleMapsApiKey: MAPS_KEY,
EXPO_PUBLIC_STRIPE_API_KEY: STRIPE_KEY
},
owner: "gauravvbh",
web: {
bundler: "metro",
output: "static",
favicon: "./assets/images/favicon.png"
}
}
};
< /code>
Это мой metro.config.js < /p>
const { getDefaultConfig } = require("expo/metro-config");
const { withNativeWind } = require("nativewind/metro");
const path = require("path");

const config = getDefaultConfig(__dirname);
config.resolver.sourceExts = [...config.resolver.sourceExts, "cjs", "web.js", "web.ts", "web.tsx"];

config.resolver.alias = {
"react-native-maps": path.resolve(__dirname, "mocks/react-native-maps.js"),
"@stripe/stripe-react-native": path.resolve(__dirname, "mocks/empty.js"),
"react-native/Libraries/Utilities/codegenNativeCommands": path.resolve(__dirname, "mocks/empty.js"),
};
module.exports = withNativeWind(config, {
input: "./global.css",
});
< /code>
Это мой babel.config.js < /p>
module.exports = function (api) {
api.cache(true);

const isWeb = process.env.EXPO_TARGET === 'web';

return {
presets: [
["babel-preset-expo", { jsxImportSource: "nativewind" }],
"nativewind/babel",
],
plugins: [
[
"module-resolver",
{
extensions: [".tsx", ".ts", ".js", ".json"],
alias: isWeb
? {
"react-native$": "react-native-web",
}
: {},
},
],
],
};
};


Подробнее здесь: https://stackoverflow.com/questions/796 ... this-error
Реклама
Ответить Пред. темаСлед. тема

Быстрый ответ

Изменение регистра текста: 
Смайлики
:) :( :oops: :roll: :wink: :muza: :clever: :sorry: :angel: :read: *x)
Ещё смайлики…
   
К этому ответу прикреплено по крайней мере одно вложение.

Если вы не хотите добавлять вложения, оставьте поля пустыми.

Максимально разрешённый размер вложения: 15 МБ.

  • Похожие темы
    Ответы
    Просмотры
    Последнее сообщение

Вернуться в «Android»