Я пытался запустить приложение на Android Studio, но я получил ошибку. Я следовал официальной документации, установил Chocolatey и run choco install -y nodejs.install python2 jdk8
, поскольку у меня процессор AMD, а не Intel, я загрузил образ системы SDK ARM 64 v8a и образ системы Arm EABI v7a в студии android и создал Pixel 3a API 24 Android 7.0 arm64-v8a. Добавлены переменные среды ANDROID_HOME и добавлены инструменты платформы в Path.
E: \ AwesomeProject> собственный реактивный запуск android
info Running jetifier to migrate libraries to AndroidX. You can disable it using "--no-jetifier" flag.
Jetifier found 863 file(s) to forward-jetify. Using 3 workers...
info JS server already running.
info Installing the app...
01:21:18 V/ddms: execute: running getprop
> Task :app:installDebug
[PropertyFetcher]: ShellCommandUnresponsiveException getting properties for device emulator-5554: null
01:21:20 V/ddms: execute: returning
01:21:20 W/PropertyFetcher: ShellCommandUnresponsiveException getting properties for device emulator-5554: null
> Task :app:installDebug
Skipping device 'Pixel_3a_API_24(AVD)' for 'app:debug': Unknown API Level
> Task :app:installDebug FAILED
Deprecated Gradle features were used in this build, making it incompatible with Gradle 6.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/5.5/userguide/command_line_interface.html#sec:command_line_warnings
27 actionable tasks: 2 executed, 25 up-to-date
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:installDebug'.
> Failed to install on any devices.
* 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 47s
error Failed to install the app. Make sure you have the Android development environment set up: https://facebook.github.io/react-native/docs/getting-started.html#android-development-environment. Run CLI with --verbose flag for more details.
Error: Command failed: gradlew.bat app:installDebug -PreactNativeDevServerPort=8081
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:installDebug'.
> Failed to install on any devices.
* 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 47s
информация о природном реактиве:
E:\AwesomeProject>react-native info
info Fetching system and libraries information...
System:
OS: Windows 7
CPU: (3) x64 AMD Athlon(tm) II X3 420e Processor
Memory: 801.84 MB / 4.00 GB
Binaries:
Node: 12.11.1 - C:\Program Files\nodejs\node.EXE
npm: 6.11.3 - C:\Program Files\nodejs\npm.CMD
SDKs:
Android SDK:
API Levels: 24, 25, 26, 28, 29
Build Tools: 28.0.3, 29.0.2
System Images: android-24 | ARM 64 v8a, android-24 | ARM EABI v7a, android-24 | Google Play Intel x86 Atom, android-25 | Google APIs ARM 64 v8a, android-25 | Google APIs ARM EABI v7a, android-25 | Google Play Intel x86 Atom, android-26 | Intel
x86 Atom_64, android-26 | Google APIs Intel x86 Atom_64, android-28 | Intel x86 Atom, android-28 | Google APIs Intel x86 Atom, android-28 | Google Play Intel x86 Atom, android-29 | Google APIs Intel x86 Atom
IDEs:
Android Studio: Version 3.5.0.0 AI-191.8026.42.35.5900203
npmPackages:
react: 16.9.0 => 16.9.0
react-native: 0.61.2 => 0.61.2
E: \ AwesomeProject \ android> сборка gradlew --warning-mode = all --stacktrace
Task :app:processDebugResources UP-TO-DATE
Changing the value for a property with a final value has been deprecated. This will fail with an error in Gradle 6.0.
at org.gradle.api.internal.provider.AbstractProperty.beforeMutate(AbstractProperty.java:86)
at org.gradle.api.internal.provider.DefaultPropertyState.set(DefaultPropertyState.java:71)
at org.gradle.api.internal.file.DefaultFilePropertyFactory$DefaultDirectoryVar.set(DefaultFilePropertyFactory.java:388)
at com.android.build.gradle.internal.scope.ProducersMap$Producer.resolve(ProducersMap.kt:148)
at com.android.build.gradle.internal.scope.ProducersMap$Producers.resolveAll(ProducersMap.kt:101)
at com.android.build.gradle.internal.scope.ProducersMap$Producers.resolveAllAndReturnLast(ProducersMap.kt:106)
at com.android.build.gradle.internal.scope.ProducersMap$Producers$injectable$1.transform(ProducersMap.kt:91)
at com.android.build.gradle.internal.scope.ProducersMap$Producers$injectable$1.transform(ProducersMap.kt:78)
at org.gradle.api.internal.provider.AbstractMinimalProvider$FlatMapProvider.map(AbstractMinimalProvider.java:165)
at org.gradle.api.internal.provider.AbstractMinimalProvider$FlatMapProvider.isPresent(AbstractMinimalProvider.java:145)
at org.gradle.api.internal.tasks.properties.bean.AbstractNestedRuntimeBeanNode$BeanPropertyValue.call(AbstractNestedRuntimeBeanNode.java:123)
at org.gradle.api.internal.tasks.properties.DefaultFinalizingValidatingProperty.prepareValue(DefaultFinalizingValidatingProperty.java:31)
at org.gradle.api.internal.tasks.execution.FinalizePropertiesTaskExecuter.execute(FinalizePropertiesTaskExecuter.java:43)
at org.gradle.api.internal.tasks.execution.ResolveTaskExecutionModeExecuter.execute(ResolveTaskExecutionModeExecuter.java:95)
at org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:57)
at org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskExecuter.java:56)
at org.gradle.api.internal.tasks.execution.CatchExceptionTaskExecuter.execute(CatchExceptionTaskExecuter.java:36)
at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter$1.executeTask(EventFiringTaskExecuter.java:73)
at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter$1.call(EventFiringTaskExecuter.java:52)
at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter$1.call(EventFiringTaskExecuter.java:49)
at org.gradle.internal.operations.DefaultBuildOperationExecutor$CallableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:416)
at org.gradle.internal.operations.DefaultBuildOperationExecutor$CallableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:406)
at org.gradle.internal.operations.DefaultBuildOperationExecutor$1.execute(DefaultBuildOperationExecutor.java:165)
at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:250)
at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:158)
at org.gradle.internal.operations.DefaultBuildOperationExecutor.call(DefaultBuildOperationExecutor.java:102)
at org.gradle.internal.operations.DelegatingBuildOperationExecutor.call(DelegatingBuildOperationExecutor.java:36)
at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter.execute(EventFiringTaskExecuter.java:49)
at org.gradle.execution.plan.LocalTaskNodeExecutor.execute(LocalTaskNodeExecutor.java:43)
at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$InvokeNodeExecutorsAction.execute(DefaultTaskExecutionGraph.java:355)
at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$InvokeNodeExecutorsAction.execute(DefaultTaskExecutionGraph.java:343)
at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$BuildOperationAwareExecutionAction.execute(DefaultTaskExecutionGraph.java:336)
at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$BuildOperationAwareExecutionAction.execute(DefaultTaskExecutionGraph.java:322)
at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker$1.execute(DefaultPlanExecutor.java:134)
at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker$1.execute(DefaultPlanExecutor.java:129)
at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker.execute(DefaultPlanExecutor.java:202)
at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker.executeNextNode(DefaultPlanExecutor.java:193)
at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker.run(DefaultPlanExecutor.java:129)
at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:63)
at org.gradle.internal.concurrent.ManagedExecutorImpl$1.run(ManagedExecutorImpl.java:46)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at org.gradle.internal.concurrent.ThreadFactoryImpl$ManagedThreadRunnable.run(ThreadFactoryImpl.java:55)
at java.lang.Thread.run(Thread.java:748)
> Task :app:bundleReleaseJsAndAssets
warning: the transform cache was reset.
Loading dependency graph, done.
info Writing bundle output to:, E:\AwesomeProject\android\app\build\generated\assets\react\release\index.android.bundle
info Writing sourcemap output to:, E:\AwesomeProject\android\app\build\generated\sourcemaps\react\release\index.android.bundle.map
info Done writing sourcemap output
info Done writing bundle output
info Copying 2 asset files
info Done copying assets
C:\Users\╤тхЁїтютрэ\.gradle\caches\modules-2\files-2.1\com.squareup.okhttp3\okhttp\3.12.1\dc6d02e4e68514eff5631963e28ca7742ac69efe\okhttp-3.12.1.jar: D8: Type `org.conscrypt.Conscrypt` was not found, it is required for default or static interface met
hods desugaring of `java.security.Provider okhttp3.internal.platform.ConscryptPlatform.getProvider()`
> Task :app:lint
Ran lint on variant release: 4 issues found
Ran lint on variant debug: 4 issues found
Wrote HTML report to file:///E:/AwesomeProject/android/app/build/reports/lint-results.html
Wrote XML report to file:///E:/AwesomeProject/android/app/build/reports/lint-results.xml
BUILD SUCCESSFUL in 7m 15s
55 actionable tasks: 27 executed, 28 up-to-date
E:\AwesomeProject\android>
снимки экрана:
один
два
три
четыре
прошу прощения за гугл переводчик заранее спасибо за помощь