Execution failed for task ':app:installDebug'.

This issue has been created since 2022-11-18.

Description

Execution failed for task ':app:installDebug'.

java.util.concurrent.ExecutionException: com.android.builder.testing.api.DeviceException: com.android.ddmlib.InstallException: INSTALL_PARSE_FAILED_MANIFEST_MALFORMED: Failed parse during installPackageLI: /data/app/vmdl2114881157.tmp/base.apk (at Binary XML file line #137): com.braintreepayments.api.BraintreeBrowserSwitchActivity: Targeting S+ (version 31 and above) requires that an explicit value for android:exported be defined when intent filters are present

Version

0.67.5

Output of npx react-native info

System:
OS: macOS 12.6.2
CPU: (4) x64 Intel(R) Core(TM) i5-3210M CPU @ 2.50GHz
Memory: 28.44 MB / 16.00 GB
Shell: 5.8.1 - /bin/zsh
Binaries:
Node: 14.17.5 - /usr/local/bin/node
Yarn: Not Found
npm: 6.14.14 - /usr/local/bin/npm
Watchman: 2022.11.07.00 - /usr/local/bin/watchman
Managers:
CocoaPods: Not Found
SDKs:
iOS SDK:
Platforms: DriverKit 22.1, iOS 16.1, macOS 13.0, tvOS 16.1, watchOS 9.1
Android SDK: Not Found
IDEs:
Android Studio: 2021.3 AI-213.7172.25.2113.9123335
Xcode: 14.1/14B47b - /usr/bin/xcodebuild
Languages:
Java: 11.0.17 - /usr/bin/javac
npmPackages:
@react-native-community/cli: Not Found
react: 17.0.2 => 17.0.2
react-native: 0.67.5 => 0.67.5
react-native-macos: Not Found
npmGlobalPackages:
react-native: Not Found

Steps to reproduce

After updating targetSdkVersion & compileSdkVersion to 31 errors showing.....

Snack, code example, screenshot, or link to a repository

// Top-level build file where you can add configuration options common to all sub-projects/modules.

buildscript {
ext {
buildToolsVersion = "30.0.3"
minSdkVersion = 21
compileSdkVersion = 31
targetSdkVersion = 31
androidXCore = "1.6.0"
googlePlayServicesAuthVersion = "16.0.1"
kotlinVersion = '1.5.0'
}
repositories {
google()
jcenter()
}
dependencies {
classpath("com.android.tools.build:gradle:4.0.1")
classpath 'com.google.gms:google-services:4.3.10'

    // NOTE: Do not place your application dependencies here; they belong
    // in the individual module build.gradle files
}

}

allprojects {
repositories {
mavenLocal()
maven {
// All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
url("$rootDir/../node_modules/react-native/android")
}
maven {
// Android JSC is installed from npm
url("$rootDir/../node_modules/jsc-android/dist")
}

    google()
    jcenter()
    maven { url 'https://www.jitpack.io' }
}

}

onatvaris wrote this answer on 2022-11-20

maybe, buildToolsVersion upgrade to 31 and try again

cortinico wrote this answer on 2022-11-23

Can you share your AndroidManifest @webwork-dot ?

webwork-dot wrote this answer on 2022-11-30

Solved thanks.

More Details About Repo
Owner Name facebook
Repo Name react-native
Full Name facebook/react-native
Language JavaScript
Created Date 2015-01-09
Updated Date 2022-12-10
Star Count 106395
Watcher Count 3660
Fork Count 22685
Issue Count 2288

YOU MAY BE INTERESTED

Issue Title Created Date Comment Count Updated Date
Same generation.proto error as before 2 2022-09-17 2022-11-17
Can expose the API over HTTP? It's hard for me to use Js Sdk !!! Please 1 2022-09-16 2022-11-17
Improve API Rules UI 0 2022-11-30 2022-12-01
Eslint error when installing the project 1 2022-09-29 2022-11-27
[Help] How to call the api (endpoints) 1 2022-09-22 2022-11-17
custom-runtimes(v6.0.0-rc1): Add runtime exports to package.json 7 2022-09-29 2022-11-27
Replace CherryPy with Cheroot in the benchmark 1 2021-12-17 2022-09-06
Not loading icon file 7 2021-07-06 2022-11-01
[Bug]: Space function has different performance in Mac and CI 1 2022-07-05 2022-11-08
Electrical pins should use PinRecM and Path 1 2021-01-13 2022-08-08
Electrical pins should use PinRecM and Path 0 2021-01-13 2022-11-16
Make active schedule tab the day of the event when it happens 0 2021-02-20 2022-12-04
Support for `package.json` `module` field 0 2022-10-22 2022-11-25
trouble with optional paradigm block 1 2020-01-12 2022-11-29
memory leak when run inference 3 2022-01-28 2022-09-11
Created Mailing List, but cannot find option to Add subscribers or Members. 15 2021-04-27 2022-12-10
falco-kubernetes installation on debian fails 5 2021-01-08 2022-09-19
Post aways returning 415 Unsupported Media Type 4 2018-01-22 2022-11-19
Strange error while using write_tsv 1 2022-02-10 2022-11-20
[BUG] WARNING: You are using pip version 21.0.1; however, version 21.3.1 is available. 0 2021-12-15 2022-10-10
Application to join nativefier-icons maintainer team 0 2022-02-05 2022-11-15
mmcv._ext FOR windows10 2 2021-09-08 2022-12-03
Problem finding different panels 1 2022-08-28 2022-11-16
add shortcut to exit and teardown resources from UI/console 1 2021-08-23 2022-09-15
Cannot serve .well-known (hidden) directory 2 2021-04-11 2022-11-26
Decode values from `OTEL_RESOURCE_ATTRIBUTES` 3 2022-07-31 2022-12-02
Autocomplete Multiple -> css bug 1 2022-04-06 2022-12-04
EGL errors in docker 6 2020-05-05 2022-12-05
[DateTimePicker] `minDate` prop on throws error when using `@date-io/moment` 6 2021-11-15 2022-11-08
Various issues, is this library still maintained? 3 2021-03-11 2022-11-28
Update repo location in package.json to be vercel/serve 2 2021-01-14 2022-11-10
[Feature][Manager] Support the field mapping feature for Sort 0 2022-03-08 2022-11-18
Incoming channel open timeout while remote peer is signing PSBT from HWW 9 2022-04-18 2022-11-17
customize feature extraction 1 2021-10-28 2022-09-23
Adding APIView Status Check as one of SDK ArchBoard Review Exit criteria 0 2022-11-14 2022-11-23
`tox_harness` should honor the new common check exclusion list 0 2022-11-11 2022-11-09
Investigate and resolve graphviz 4.0 failures 0 2022-06-30 2022-10-22
[IntelliJ][ReportedByUser] Uncaught Exception java.lang.Throwable: Conflicting component name 'RunManager': class com.intellij.execution.impl.RunManagerImpl and class com.intellij.execution.impl.RunManagerImpl (componentManager=Project(name=learnJava, containerState=COMPONENT_CREATED, componentStore=/Users/red1/IdeaProjects/learnJava)) 1 2021-10-04 2022-10-23
[Sparse] GCN Example 0 2022-11-22 2022-12-02
[Bug] Build fail when BUILD_SPARSE=ON 3 2022-11-19 2022-12-02
[Sparse] GCNII Example 0 2022-11-22 2022-12-02
Error in reading bitmap - EACCES (Permission denied) 4 2019-11-13 2022-11-29
[Refactor] Migrate all command-related interface functions from ProcessServiceImpl 1 2022-10-20 2022-10-26
Support for adding custom kafka message formats? 0 2022-11-22 2022-11-26
Pluralize issue: 'feedback' -> 'feedbacks' 2 2022-01-14 2022-09-30
Remove use of JLine outside of accumulo-shell 1 2021-07-15 2022-12-07
Package 'fuse' and package 'sshfs' -- what are the differences? 1 2019-06-20 2022-11-18
Metricbeat "io.stat: input does not match format" 1 2022-07-13 2022-10-13
Build 391 for 7.17 with status FAILURE 2 2022-07-13 2022-07-31
Overriding exec-path changes from other hooks 2 2021-03-09 2022-11-27