React Native Build Failing
up vote
0
down vote
favorite
Hi I am new to react native and was trying to setup the sample project, but while trying to build the app i am getting following error
Task :app:installDebug FAILED
Skipping device 'd18a96d67d94 - 7.1.2' for 'app:debug': Could not find build
of variant which supports density -1 and an ABI in
FAILURE: Build failed with an exception.
What went wrong:
Execution failed for task ':app:installDebug'.
Failed to install on any devices.
Any idea why this is happening?
javascript react-native
add a comment |
up vote
0
down vote
favorite
Hi I am new to react native and was trying to setup the sample project, but while trying to build the app i am getting following error
Task :app:installDebug FAILED
Skipping device 'd18a96d67d94 - 7.1.2' for 'app:debug': Could not find build
of variant which supports density -1 and an ABI in
FAILURE: Build failed with an exception.
What went wrong:
Execution failed for task ':app:installDebug'.
Failed to install on any devices.
Any idea why this is happening?
javascript react-native
In which device you're installing the debug app ?
– Siraj
Nov 19 at 18:22
Are you trying to emulate on a real device? try execute adb devices on terminal and see if there is any device listed.
– Alessandro Macanha
Nov 19 at 18:40
Yes i am uing a real device. It is Redmi 4, it is showing the device id when i run adb devices in terminal
– Vipin
Nov 20 at 1:42
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
Hi I am new to react native and was trying to setup the sample project, but while trying to build the app i am getting following error
Task :app:installDebug FAILED
Skipping device 'd18a96d67d94 - 7.1.2' for 'app:debug': Could not find build
of variant which supports density -1 and an ABI in
FAILURE: Build failed with an exception.
What went wrong:
Execution failed for task ':app:installDebug'.
Failed to install on any devices.
Any idea why this is happening?
javascript react-native
Hi I am new to react native and was trying to setup the sample project, but while trying to build the app i am getting following error
Task :app:installDebug FAILED
Skipping device 'd18a96d67d94 - 7.1.2' for 'app:debug': Could not find build
of variant which supports density -1 and an ABI in
FAILURE: Build failed with an exception.
What went wrong:
Execution failed for task ':app:installDebug'.
Failed to install on any devices.
Any idea why this is happening?
javascript react-native
javascript react-native
asked Nov 19 at 18:08
Vipin
7419
7419
In which device you're installing the debug app ?
– Siraj
Nov 19 at 18:22
Are you trying to emulate on a real device? try execute adb devices on terminal and see if there is any device listed.
– Alessandro Macanha
Nov 19 at 18:40
Yes i am uing a real device. It is Redmi 4, it is showing the device id when i run adb devices in terminal
– Vipin
Nov 20 at 1:42
add a comment |
In which device you're installing the debug app ?
– Siraj
Nov 19 at 18:22
Are you trying to emulate on a real device? try execute adb devices on terminal and see if there is any device listed.
– Alessandro Macanha
Nov 19 at 18:40
Yes i am uing a real device. It is Redmi 4, it is showing the device id when i run adb devices in terminal
– Vipin
Nov 20 at 1:42
In which device you're installing the debug app ?
– Siraj
Nov 19 at 18:22
In which device you're installing the debug app ?
– Siraj
Nov 19 at 18:22
Are you trying to emulate on a real device? try execute adb devices on terminal and see if there is any device listed.
– Alessandro Macanha
Nov 19 at 18:40
Are you trying to emulate on a real device? try execute adb devices on terminal and see if there is any device listed.
– Alessandro Macanha
Nov 19 at 18:40
Yes i am uing a real device. It is Redmi 4, it is showing the device id when i run adb devices in terminal
– Vipin
Nov 20 at 1:42
Yes i am uing a real device. It is Redmi 4, it is showing the device id when i run adb devices in terminal
– Vipin
Nov 20 at 1:42
add a comment |
2 Answers
2
active
oldest
votes
up vote
0
down vote
If you have error something like this :
Running C:Androidsdk/platform-tools/adb -s 329cb478 reverse tcp:8081 tcp:8081
Installing the app on the device (cd android && adb -s 329cb478 install app/build/outputs/apk/app-debug.apk
adb: error: cannot stat 'app/build/outputs/apk/app-debug.apk': No such file or directory
Command failed: C:Androidsdk/platform-tools/adb -s 329cb478 install app/build/outputs/apk/app-debug.apk
Could not install the app on the device, read the error above for details.
===
please cek : app-debug.apk location
mylocation default : C:Usersbasereact_cargocargomobilemobile_json2androidappbuildoutputsapkdebugapp-debug.apk
and you must move : app-debug.apk
C:Usersbasereact_cargocargomobilemobile_json2androidappbuildoutputsapkapp-debug.apk
up for one level folder : "debug"
outputsapkdebug
--
outputsapk
add a comment |
up vote
0
down vote
enable developer mode - In your phone, go to Settings, About phone and click on MIUI version 7 times. You’ll see a pop up which says you are a developer now.
Go back to Settings, Additional settings, Developer options and enable USB Debugging.
Connect your phone to your PC/Mac and on the phone authorize your computer
go back to Developer options, scroll down to find Turn on MIUI optimization and disable it. Your phone will be rebooted
Try it now :)
=====
cek list devices : adb devices
kill adb device : adb kill-server deviceId 329cb478 // is my id devices
run again : adb devices
npm start
Open another console / cmd
run this inside folder project : react-native run-android --deviceId 329cb478
add a comment |
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
0
down vote
If you have error something like this :
Running C:Androidsdk/platform-tools/adb -s 329cb478 reverse tcp:8081 tcp:8081
Installing the app on the device (cd android && adb -s 329cb478 install app/build/outputs/apk/app-debug.apk
adb: error: cannot stat 'app/build/outputs/apk/app-debug.apk': No such file or directory
Command failed: C:Androidsdk/platform-tools/adb -s 329cb478 install app/build/outputs/apk/app-debug.apk
Could not install the app on the device, read the error above for details.
===
please cek : app-debug.apk location
mylocation default : C:Usersbasereact_cargocargomobilemobile_json2androidappbuildoutputsapkdebugapp-debug.apk
and you must move : app-debug.apk
C:Usersbasereact_cargocargomobilemobile_json2androidappbuildoutputsapkapp-debug.apk
up for one level folder : "debug"
outputsapkdebug
--
outputsapk
add a comment |
up vote
0
down vote
If you have error something like this :
Running C:Androidsdk/platform-tools/adb -s 329cb478 reverse tcp:8081 tcp:8081
Installing the app on the device (cd android && adb -s 329cb478 install app/build/outputs/apk/app-debug.apk
adb: error: cannot stat 'app/build/outputs/apk/app-debug.apk': No such file or directory
Command failed: C:Androidsdk/platform-tools/adb -s 329cb478 install app/build/outputs/apk/app-debug.apk
Could not install the app on the device, read the error above for details.
===
please cek : app-debug.apk location
mylocation default : C:Usersbasereact_cargocargomobilemobile_json2androidappbuildoutputsapkdebugapp-debug.apk
and you must move : app-debug.apk
C:Usersbasereact_cargocargomobilemobile_json2androidappbuildoutputsapkapp-debug.apk
up for one level folder : "debug"
outputsapkdebug
--
outputsapk
add a comment |
up vote
0
down vote
up vote
0
down vote
If you have error something like this :
Running C:Androidsdk/platform-tools/adb -s 329cb478 reverse tcp:8081 tcp:8081
Installing the app on the device (cd android && adb -s 329cb478 install app/build/outputs/apk/app-debug.apk
adb: error: cannot stat 'app/build/outputs/apk/app-debug.apk': No such file or directory
Command failed: C:Androidsdk/platform-tools/adb -s 329cb478 install app/build/outputs/apk/app-debug.apk
Could not install the app on the device, read the error above for details.
===
please cek : app-debug.apk location
mylocation default : C:Usersbasereact_cargocargomobilemobile_json2androidappbuildoutputsapkdebugapp-debug.apk
and you must move : app-debug.apk
C:Usersbasereact_cargocargomobilemobile_json2androidappbuildoutputsapkapp-debug.apk
up for one level folder : "debug"
outputsapkdebug
--
outputsapk
If you have error something like this :
Running C:Androidsdk/platform-tools/adb -s 329cb478 reverse tcp:8081 tcp:8081
Installing the app on the device (cd android && adb -s 329cb478 install app/build/outputs/apk/app-debug.apk
adb: error: cannot stat 'app/build/outputs/apk/app-debug.apk': No such file or directory
Command failed: C:Androidsdk/platform-tools/adb -s 329cb478 install app/build/outputs/apk/app-debug.apk
Could not install the app on the device, read the error above for details.
===
please cek : app-debug.apk location
mylocation default : C:Usersbasereact_cargocargomobilemobile_json2androidappbuildoutputsapkdebugapp-debug.apk
and you must move : app-debug.apk
C:Usersbasereact_cargocargomobilemobile_json2androidappbuildoutputsapkapp-debug.apk
up for one level folder : "debug"
outputsapkdebug
--
outputsapk
answered Nov 20 at 15:46
Hadi
11
11
add a comment |
add a comment |
up vote
0
down vote
enable developer mode - In your phone, go to Settings, About phone and click on MIUI version 7 times. You’ll see a pop up which says you are a developer now.
Go back to Settings, Additional settings, Developer options and enable USB Debugging.
Connect your phone to your PC/Mac and on the phone authorize your computer
go back to Developer options, scroll down to find Turn on MIUI optimization and disable it. Your phone will be rebooted
Try it now :)
=====
cek list devices : adb devices
kill adb device : adb kill-server deviceId 329cb478 // is my id devices
run again : adb devices
npm start
Open another console / cmd
run this inside folder project : react-native run-android --deviceId 329cb478
add a comment |
up vote
0
down vote
enable developer mode - In your phone, go to Settings, About phone and click on MIUI version 7 times. You’ll see a pop up which says you are a developer now.
Go back to Settings, Additional settings, Developer options and enable USB Debugging.
Connect your phone to your PC/Mac and on the phone authorize your computer
go back to Developer options, scroll down to find Turn on MIUI optimization and disable it. Your phone will be rebooted
Try it now :)
=====
cek list devices : adb devices
kill adb device : adb kill-server deviceId 329cb478 // is my id devices
run again : adb devices
npm start
Open another console / cmd
run this inside folder project : react-native run-android --deviceId 329cb478
add a comment |
up vote
0
down vote
up vote
0
down vote
enable developer mode - In your phone, go to Settings, About phone and click on MIUI version 7 times. You’ll see a pop up which says you are a developer now.
Go back to Settings, Additional settings, Developer options and enable USB Debugging.
Connect your phone to your PC/Mac and on the phone authorize your computer
go back to Developer options, scroll down to find Turn on MIUI optimization and disable it. Your phone will be rebooted
Try it now :)
=====
cek list devices : adb devices
kill adb device : adb kill-server deviceId 329cb478 // is my id devices
run again : adb devices
npm start
Open another console / cmd
run this inside folder project : react-native run-android --deviceId 329cb478
enable developer mode - In your phone, go to Settings, About phone and click on MIUI version 7 times. You’ll see a pop up which says you are a developer now.
Go back to Settings, Additional settings, Developer options and enable USB Debugging.
Connect your phone to your PC/Mac and on the phone authorize your computer
go back to Developer options, scroll down to find Turn on MIUI optimization and disable it. Your phone will be rebooted
Try it now :)
=====
cek list devices : adb devices
kill adb device : adb kill-server deviceId 329cb478 // is my id devices
run again : adb devices
npm start
Open another console / cmd
run this inside folder project : react-native run-android --deviceId 329cb478
edited Nov 20 at 23:54
answered Nov 20 at 15:40
Hadi
11
11
add a comment |
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53380371%2freact-native-build-failing%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
In which device you're installing the debug app ?
– Siraj
Nov 19 at 18:22
Are you trying to emulate on a real device? try execute adb devices on terminal and see if there is any device listed.
– Alessandro Macanha
Nov 19 at 18:40
Yes i am uing a real device. It is Redmi 4, it is showing the device id when i run adb devices in terminal
– Vipin
Nov 20 at 1:42