Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Android minSdkVersion #1275

Closed
sergiomap opened this issue Apr 11, 2019 · 3 comments
Closed

Android minSdkVersion #1275

sergiomap opened this issue Apr 11, 2019 · 3 comments

Comments

@sergiomap
Copy link

Describe the bug
I'm trying to build my project for android and it doesn't work.

My package.json has:
"android": { "binaryPath": "android/app/build/outputs/apk/debug/app-debug.apk", "build": "pushd android && ./gradlew assembleDebug assembleAndroidTest -DtestBuildType=debug && popd", "type": "android.emulator", "name": "Pixel_XL_API_28" }

When I run "detox build -c android" I get the error:
`Execution failed for task ':react-native-jumio-mobilesdk:processDebugAndroidTestManifest'.

Manifest merger failed : uses-sdk:minSdkVersion 1 cannot be smaller than version 19 declared in library [tested_artifact::react-native-jumio-mobilesdk] /Users/me/Projects/project/packages/mobile/node_modules/react-native-jumio-mobilesdk/android/build/intermediates/library_manifest/debug/AndroidManifest.xml as the library might be using APIs not available in 1
Suggestion: use a compatible library with a minSdk of at most 1,
or increase this project's minSdk version to at least 19,
or use tools:overrideLibrary="com.jumio.react" to force usage (may lead to runtime failures)`

In my build.gradle I have minSdkVersion 19 and targetSdkVersion 28.
I already tried to force the minSdkVersion in AndroidManifest but doesn't worked.

If I run just ./gradlew assembleDebug the project builds but I'm not able to run detox test next.
So, the problem is when I run assembleAndroidTest as I have in my package.json configuration.
On iOS everything works fine.

detox version: 12.1.3
gradle: 3.3.1

I don't know if this can be a bug but related with gradle and detox version.

@VincentCATILLON
Copy link

Hi @sergiomap, have you changed the build.gradle in your project (android) or in your target (android/app) dir ?

Our app is building fine using Detox 10 (and lastly 12), with minSdkVersion set in project dir (android/build.gradle). Neither manifest or target build file has been changed manually.

@stale
Copy link

stale bot commented May 15, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.
If you believe the issue is still relevant, please test on the latest Detox and report back.
Thank you for your contributions.

@stale stale bot added the 🏚 stale label May 15, 2019
@stale
Copy link

stale bot commented May 22, 2019

The issue has been closed for inactivity.

@stale stale bot closed this as completed May 22, 2019
@lock lock bot locked as resolved and limited conversation to collaborators May 25, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants