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: same config but not posible to run #67

Closed
icastillejogomez opened this issue Dec 20, 2018 · 3 comments
Closed

Android: same config but not posible to run #67

icastillejogomez opened this issue Dec 20, 2018 · 3 comments

Comments

@icastillejogomez
Copy link

icastillejogomez commented Dec 20, 2018

$ react-native run-android
Scanning folders for symlinks in /Volumes/HDD/Projects/VisionariosBolsa/visionarios-bolsa-app/app/node_modules (11ms)
JS server already running.
Building and installing the app on the device (cd android && ./gradlew installDebug)...
NDK is missing a "platforms" directory.
If you are using NDK, verify the ndk.dir is set to a valid NDK directory.  It is currently set to /Volumes/HDD/Library/Android/sdk/ndk-bundle.
If you are not using NDK, unset the NDK variable from ANDROID_NDK_HOME or local.properties to remove this warning.

NDK is missing a "platforms" directory.
If you are using NDK, verify the ndk.dir is set to a valid NDK directory.  It is currently set to /Volumes/HDD/Library/Android/sdk/ndk-bundle.
If you are not using NDK, unset the NDK variable from ANDROID_NDK_HOME or local.properties to remove this warning.

NDK is missing a "platforms" directory.
If you are using NDK, verify the ndk.dir is set to a valid NDK directory.  It is currently set to /Volumes/HDD/Library/Android/sdk/ndk-bundle.
If you are not using NDK, unset the NDK variable from ANDROID_NDK_HOME or local.properties to remove this warning.

NDK is missing a "platforms" directory.
If you are using NDK, verify the ndk.dir is set to a valid NDK directory.  It is currently set to /Volumes/HDD/Library/Android/sdk/ndk-bundle.
If you are not using NDK, unset the NDK variable from ANDROID_NDK_HOME or local.properties to remove this warning.

:app:preBuild UP-TO-DATE
:app:preDebugBuild UP-TO-DATE
:app:checkDebugManifest
:app:preReleaseBuild UP-TO-DATE
:app:prepareAndroidArchLifecycleRuntime100Library
:app:prepareComAndroidSupportAnimatedVectorDrawable2610Library
:app:prepareComAndroidSupportAppcompatV72610Library
:app:prepareComAndroidSupportSupportCompat2610Library
:app:prepareComAndroidSupportSupportCoreUi2610Library
:app:prepareComAndroidSupportSupportCoreUtils2610Library
:app:prepareComAndroidSupportSupportFragment2610Library
:app:prepareComAndroidSupportSupportMediaCompat2610Library
:app:prepareComAndroidSupportSupportV42610Library
:app:prepareComAndroidSupportSupportVectorDrawable2610Library
:app:prepareComFacebookFbuiTextlayoutbuilderTextlayoutbuilder100Library
:app:prepareComFacebookFrescoDrawee190Library
:app:prepareComFacebookFrescoFbcore190Library
:app:prepareComFacebookFrescoFresco190Library
:app:prepareComFacebookFrescoImagepipeline190Library
:app:prepareComFacebookFrescoImagepipelineBase190Library
:app:prepareComFacebookFrescoImagepipelineOkhttp3190Library
:app:prepareComFacebookReactReactNative0561Library
:app:prepareComFacebookSoloaderSoloader030Library
:app:prepareComGoogleAndroidExoplayerExoplayer273Library
:app:prepareComGoogleAndroidExoplayerExoplayerCore273Library
:app:prepareComGoogleAndroidExoplayerExoplayerDash273Library
:app:prepareComGoogleAndroidExoplayerExoplayerHls273Library
:app:prepareComGoogleAndroidExoplayerExoplayerSmoothstreaming273Library
:app:prepareComGoogleAndroidExoplayerExoplayerUi273Library
:app:prepareComGoogleAndroidExoplayerExtensionOkhttp273Library
:app:prepareComWeiAndroidLibFingerprintidentify121Library
:app:prepareOrgWebkitAndroidJscR174650Library
:react-native-fingerprint-scanner:preBuild UP-TO-DATE
:react-native-fingerprint-scanner:preReleaseBuild UP-TO-DATE
:react-native-fingerprint-scanner:checkReleaseManifest
:react-native-fingerprint-scanner:preDebugAndroidTestBuild UP-TO-DATE
:react-native-fingerprint-scanner:preDebugBuild UP-TO-DATE
:react-native-fingerprint-scanner:preDebugUnitTestBuild UP-TO-DATE
:react-native-fingerprint-scanner:preReleaseUnitTestBuild UP-TO-DATE
:react-native-fingerprint-scanner:prepareAndroidArchLifecycleRuntime100Library
:react-native-fingerprint-scanner:prepareComAndroidSupportAnimatedVectorDrawable2610Library
:react-native-fingerprint-scanner:prepareComAndroidSupportAppcompatV72610Library
:react-native-fingerprint-scanner:prepareComAndroidSupportSupportCompat2610Library
:react-native-fingerprint-scanner:prepareComAndroidSupportSupportCoreUi2610Library
:react-native-fingerprint-scanner:prepareComAndroidSupportSupportCoreUtils2610Library
:react-native-fingerprint-scanner:prepareComAndroidSupportSupportFragment2610Library
:react-native-fingerprint-scanner:prepareComAndroidSupportSupportMediaCompat2610Library
:react-native-fingerprint-scanner:prepareComAndroidSupportSupportV42610Library
:react-native-fingerprint-scanner:prepareComAndroidSupportSupportVectorDrawable2610Library
:react-native-fingerprint-scanner:prepareComFacebookFbuiTextlayoutbuilderTextlayoutbuilder100Library
:react-native-fingerprint-scanner:prepareComFacebookFrescoDrawee190Library
:react-native-fingerprint-scanner:prepareComFacebookFrescoFbcore190Library
:react-native-fingerprint-scanner:prepareComFacebookFrescoFresco190Library
:react-native-fingerprint-scanner:prepareComFacebookFrescoImagepipeline190Library
:react-native-fingerprint-scanner:prepareComFacebookFrescoImagepipelineBase190Library
:react-native-fingerprint-scanner:prepareComFacebookFrescoImagepipelineOkhttp3190Library
:react-native-fingerprint-scanner:prepareComFacebookReactReactNative0561Library
:react-native-fingerprint-scanner:prepareComFacebookSoloaderSoloader030Library
:react-native-fingerprint-scanner:prepareComWeiAndroidLibFingerprintidentify121Library
:react-native-fingerprint-scanner:prepareOrgWebkitAndroidJscR174650Library
:react-native-fingerprint-scanner:prepareReleaseDependencies
:react-native-fingerprint-scanner:compileReleaseAidl
:react-native-fingerprint-scanner:compileReleaseNdk NO-SOURCE
:react-native-fingerprint-scanner:compileLint
:react-native-fingerprint-scanner:copyReleaseLint NO-SOURCE
:react-native-fingerprint-scanner:compileReleaseRenderscript
:react-native-fingerprint-scanner:generateReleaseBuildConfig
:react-native-fingerprint-scanner:generateReleaseResValues
:react-native-fingerprint-scanner:generateReleaseResources
:react-native-fingerprint-scanner:mergeReleaseResources
:react-native-fingerprint-scanner:processReleaseManifest
:react-native-fingerprint-scanner:processReleaseResources
/Volumes/HDD/Projects/VisionariosBolsa/visionarios-bolsa-app/app/node_modules/react-native-fingerprint-scanner/android/build/intermediates/res/merged/release/values-v26/values-v26.xml:15:21-54: AAPT: No resource found that matches the given name: attr 'android:keyboardNavigationCluster'.

/Volumes/HDD/Projects/VisionariosBolsa/visionarios-bolsa-app/app/node_modules/react-native-fingerprint-scanner/android/build/intermediates/res/merged/release/values-v26/values-v26.xml:15: error: Error: No resource found that matches the given name: attr 'android:keyboardNavigationCluster'.


:react-native-fingerprint-scanner:processReleaseResources FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':react-native-fingerprint-scanner:processReleaseResources'.
> com.android.ide.common.process.ProcessException: Failed to execute aapt

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

Total time: 2.565 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/getting-started.html
@icastillejogomez
Copy link
Author

icastillejogomez commented Dec 20, 2018

This solve my problem. I'm using v26.0.1
expo/create-react-native-app#499 (comment)

@icastillejogomez
Copy link
Author

Now I see this when I run react-native run-android on my device:

Dex: warning: Ignoring InnerClasses attribute for an anonymous inner class
(com.samsung.android.sdk.pass.d) that doesn't come with an
associated EnclosingMethod attribute. This class was probably produced by a
compiler that did not target the modern .class file format. The recommended
solution is to recompile the class from source, using an up-to-date compiler
and without specifying any "-target" type options. The consequence of ignoring
this warning is that reflective operations on this class will incorrectly
indicate that it is *not* an inner class.

@phillbaker
Copy link
Collaborator

Thanks @icastillejogomez, closing since it seems like the issues is resolved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants