React Native Build Failing
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 |
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 '18 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 '18 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 '18 at 1:42
add a comment |
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 '18 at 18:08
VipinVipin
7429
7429
In which device you're installing the debug app ?
– Siraj
Nov 19 '18 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 '18 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 '18 at 1:42
add a comment |
In which device you're installing the debug app ?
– Siraj
Nov 19 '18 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 '18 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 '18 at 1:42
In which device you're installing the debug app ?
– Siraj
Nov 19 '18 at 18:22
In which device you're installing the debug app ?
– Siraj
Nov 19 '18 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 '18 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 '18 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 '18 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 '18 at 1:42
add a comment |
2 Answers
2
active
oldest
votes
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 |
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 |
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
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
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
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 |
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 |
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 '18 at 15:46
HadiHadi
11
11
add a comment |
add a comment |
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 |
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 |
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 '18 at 23:54
answered Nov 20 '18 at 15:40
HadiHadi
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 '18 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 '18 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 '18 at 1:42