Реактивный Gradlew не создает app.aab - PullRequest
0 голосов
/ 11 июня 2019

Информация о системе

  1. Реактивный: 0,59,8
  2. Android-студия: 3.3.1

Фон

Я делаю простое приложение на нативном языке. Я пытался загрузить свое приложение в Google Play Store, но безуспешно. Я следовал этой документации . Как было сказано, я набрал ./gradlew buildRelease на терминале. Результаты приведены ниже.

> Configure project :react-native-voice
WARNING: Configuration 'compile' is obsolete and has been replaced with 'implementation' and 'api'.
It will be removed at the end of 2018. For more information see: http://d.android.com/r/tools/update-dependency-configurations.html
WARNING: Configuration 'testCompile' is obsolete and has been replaced with 'testImplementation'.
It will be removed at the end of 2018. For more information see: http://d.android.com/r/tools/update-dependency-configurations.html
WARNING: The specified Android SDK Build Tools version (23.0.2) is ignored, as it is below the minimum supported version (28.0.3) for Android Gradle Plugin 3.3.1.
Android SDK Build Tools 28.0.3 will be used.
To suppress this warning, remove "buildToolsVersion '23.0.2'" from your build.gradle file, as each version of the Android Gradle Plugin now has a default version of the build tools.

> Task :app:bundleReleaseJsAndAssets
warning: the transform cache was reset.
Loading dependency graph, done.
info Writing bundle output to:, /Users/mac88/Desktop/Projects/voice-car-v2/NativeApp/android/app/build/generated/assets/react/release/index.android.bundle
info Done writing bundle output
info Copying 13 asset files
info Done copying assets

> Task :react-native-gesture-handler:compileReleaseJavaWithJavac
Note: /Users/mac88/Desktop/Projects/voice-car-v2/NativeApp/node_modules/react-native-gesture-handler/android/src/main/java/com/swmansion/gesturehandler/react/RNGestureHandlerButtonViewManager.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.

BUILD SUCCESSFUL in 29s
63 actionable tasks: 10 executed, 53 up-to-date

Задача

Да, это показывает BUILD SUCCESSFULL in 29s! но нет android/app/build/outputs/bundle/release/app.aab или в любой папке.

Как получить app.aab файл?

1 Ответ

4 голосов
/ 11 июня 2019

Когда вы генерируете Android apk с помощью ./gradlew buildRelease, он автоматически сохраняется в папке вашего проекта android/app/build/outputs/apk/release, вы можете найти app-release.apk, если apk генерируется успешно.

Другой вариант, когда вы генерируете apk с помощью android studio, он дает вам возможность сохранить ваш apk в выбранной папке или каталогах.

Спасибо

...