7

Ben react-native run-android --variant=releaseHata koşu tepki Yerli çalışma android --variant = bırakma

Starting JS server... 
Running /home/sonic182/Android/platform-tools/adb -s ZY2232QD4K reverse tcp:8081 tcp:8081 
Building and installing the app on the device (cd android && ./gradlew installReleaseDebug)... 

FAILURE: Build failed with an exception. 

* What went wrong: 
Task 'installReleaseDebug' not found in root project 'gnosisapp'. 

* Try: 
Run gradlew tasks to get a list of available tasks. Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. 

BUILD FAILED 

Total time: 7.779 secs 
Could not install the app on the device, read the error above for details. 
Make sure you have an Android emulator running or a device connected and have 
set up your Android development environment: 
https://facebook.github.io/react-native/docs/android-setup.html 

(node:24877) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 2): TypeError: Cannot read property 'message' of undefined 

Ben yapmaya çalışıyor bu hatayı yaşıyorum (Görev 'installReleaseDebug' kök projesi 'gnosisapp'. Bulunmayan) Ubuntu 16.04 üzerinde m, burada react-native run-android --variant=release Ne yapmalıyım? :/ Teşekkür

+0

Ben aynı sorunu vardı ve burada bir sorun açıldı: https://github.com/facebook/react -native/issues/11586 –

cevap

36

Eğer Yerli 0.39.x Tepki çalıştırıyorsanız, bu kullanın:

react-native run-android --configuration=release 
+2

Bu resmi belgelerdeki güncellenmelidir ... https: //facebook.github.io/react-native/docs/signed-apk-android.html – ElliotM

+3

Zaten bir PR (https: var. Resmi dokümanları güncellemek için gönderilen //github.com/facebook/react-native/pull/11443). –

+0

Bu tepki-yerli run-android --help' belgelenmiştir. –

İlgili konular