Исполнение не удалось для задачи ': приложение: generateautolingpackagelist'Android

Форум для тех, кто программирует под Android
Ответить Пред. темаСлед. тема
Anonymous
 Исполнение не удалось для задачи ': приложение: generateautolingpackagelist'

Сообщение Anonymous »

Я обновил свои библиотеки с помощью реактивной версии.

Код: Выделить всё

info A dev server is already running for this project on port 8081.
info Launching emulator...
info Successfully launched emulator.
info Installing the app...
> Task :app:generateAutolinkingPackageList FAILED
7 actionable tasks: 7 executed

info 💡 Tip: Make sure that you have set up your development environment correctly, by running npx 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 ':app:generateAutolinkingPackageList'.
> RNGP - Autolinking: Could not find project.android.packageName in react-native config output! Could not autolink packages without this field.

* 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 5s
error Failed to install the app. Command failed with exit code 1: gradlew.bat app:installDebug -PreactNativeDevServerPort=8081 FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':app:generateAutolinkingPackageList'. > RNGP - Autolinking: Could not find project.android.packageName in react-native config output! Could not autolink packages without this field. * 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 5s.
info Run CLI with --verbose flag for more details.
Waiting for the debugger to disconnect...
Waiting for the debugger to disconnect...
< /code>
Такая же проблема везде, < /p>
Здесь мои файлы: < /p>
package.json
{
"name": "mommy",
"version": "0.0.1",
"private": true,
"scripts": {
"android": "react-native run-android",
"ios": "react-native run-ios",
"lint": "eslint .",
"start": "react-native start",
"test": "jest",
"postinstall": "patch-package"
},
"dependencies": {
"@react-native-async-storage/async-storage": "^2.2.0",
"@react-native-community/datetimepicker": "^8.4.2",
"@react-native-firebase/auth": "^22.2.1",
"@react-native-firebase/firestore": "^22.2.1",
"babel-plugin-module-resolver": "^5.0.2",
"moment": "^2.30.1",
"paths-js": "^0.4.11",
"react": "^19.1.0",
"react-native": "0.80.1",
"react-native-chart-kit": "^6.12.0",
"react-native-elements": "^3.4.3",
"react-native-gesture-handler": "^2.27.1",
"react-native-heroicons": "^4.0.0",
"react-native-iap": "^12.16.4",
"react-native-intent-launcher": "^0.2.1",
"react-native-paper": "^5.14.5",
"react-native-permissions": "^5.4.1",
"react-native-safe-area-context": "^5.5.1",
"react-native-svg": "^15.12.0",
"react-redux": "^9.2.0",
"redux": "^5.0.1"
},
"devDependencies": {
"@babel/core": "^7.28.0",
"@babel/preset-env": "^7.28.0",
"@babel/runtime": "^7.27.6",
"@react-native/babel-preset": "0.80.1",
"@react-native/eslint-config": "0.80.1",
"@react-native/metro-config": "0.80.1",
"@react-native/typescript-config": "0.80.1",
"@types/react": "^19.1.8",
"@types/react-test-renderer": "^19.1.0",
"babel-jest": "^30.0.4",
"eslint": "^9.30.1",
"jest": "^30.0.4",
"patch-package": "^8.0.0",
"postinstall-postinstall": "^2.1.0",
"prettier": "3.6.2",
"react-test-renderer": "19.1.0",
"typescript": "5.8.3"
},
"engines": {
"node": ">=18"
}
}
< /code>
settings.gradle
include ':app'
project(':app').projectDir = new File(rootProject.projectDir, 'app')
include ':react-native-iap'
project(':react-native-iap').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-iap/android')
includeBuild('../node_modules/@react-native/gradle-plugin')
< /code>
build.gradle
buildscript {
ext {
buildToolsVersion = "35.0.0"
minSdkVersion = 35
compileSdkVersion = 35
targetSdkVersion = 35
ndkVersion = "26.2.11394342"
}
repositories {
google()
mavenCentral()
}
dependencies {
classpath("com.android.tools.build:gradle:8.3.1")
classpath("com.facebook.react:react-native-gradle-plugin")
classpath("com.google.gms:google-services:4.4.1")

}
}

allprojects {
repositories {
mavenLocal()
mavenCentral()
google()
}
}
App/build.gradle
apply plugin: "com.android.application"
apply plugin: "org.jetbrains.kotlin.android"
apply plugin: "com.facebook.react"
apply plugin: 'com.google.gms.google-services' //

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

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

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

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

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

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

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