Error: Make sure you have an Android emulator running or a device connected and have set up your Android development environment
See original GitHub issueBuilding and installing the app on the device (cd android && ./gradlew installDebug)...
Incremental java compilation is an incubating feature.
:app:preBuild UP-TO-DATE
:app:preDebugBuild UP-TO-DATE
:app:checkDebugManifest
:app:preReleaseBuild UP-TO-DATE
:react-native-fbsdk:preBuild UP-TO-DATE
:react-native-fbsdk:preReleaseBuild UP-TO-DATE
:react-native-fbsdk:checkReleaseManifest
:react-native-fbsdk:preDebugAndroidTestBuild UP-TO-DATE
:react-native-fbsdk:preDebugBuild UP-TO-DATE
:react-native-fbsdk:preDebugUnitTestBuild UP-TO-DATE
:react-native-fbsdk:preReleaseUnitTestBuild UP-TO-DATE
:react-native-fbsdk:prepareComAndroidSupportAnimatedVectorDrawable2500Library UP-TO-DATE
:react-native-fbsdk:prepareComAndroidSupportAppcompatV72500Library UP-TO-DATE
:react-native-fbsdk:prepareComAndroidSupportCardviewV72500Library UP-TO-DATE
:react-native-fbsdk:prepareComAndroidSupportCustomtabs2500Library UP-TO-DATE
:react-native-fbsdk:prepareComAndroidSupportSupportCompat2500Library UP-TO-DATE
:react-native-fbsdk:prepareComAndroidSupportSupportCoreUi2500Library UP-TO-DATE
:react-native-fbsdk:prepareComAndroidSupportSupportCoreUtils2500Library UP-TO-DATE
:react-native-fbsdk:prepareComAndroidSupportSupportFragment2500Library UP-TO-DATE
:react-native-fbsdk:prepareComAndroidSupportSupportMediaCompat2500Library UP-TO-DATE
:react-native-fbsdk:prepareComAndroidSupportSupportV42500Library UP-TO-DATE
:react-native-fbsdk:prepareComAndroidSupportSupportVectorDrawable2500Library UP-TO-DATE
:react-native-fbsdk:prepareComFacebookAndroidFacebookAndroidSdk4221Library UP-TO-DATE
:react-native-fbsdk:prepareComFacebookFbuiTextlayoutbuilderTextlayoutbuilder100Library UP-TO-DATE
:react-native-fbsdk:prepareComFacebookFrescoDrawee101Library UP-TO-DATE
:react-native-fbsdk:prepareComFacebookFrescoFbcore101Library UP-TO-DATE
:react-native-fbsdk:prepareComFacebookFrescoFresco101Library UP-TO-DATE
:react-native-fbsdk:prepareComFacebookFrescoImagepipeline101Library UP-TO-DATE
:react-native-fbsdk:prepareComFacebookFrescoImagepipelineBase101Library UP-TO-DATE
:react-native-fbsdk:prepareComFacebookFrescoImagepipelineOkhttp3101Library UP-TO-DATE
:react-native-fbsdk:prepareComFacebookReactReactNative0461Library UP-TO-DATE
:react-native-fbsdk:prepareComFacebookSoloaderSoloader010Library UP-TO-DATE
:react-native-fbsdk:prepareOrgWebkitAndroidJscR174650Library UP-TO-DATE
:react-native-fbsdk:prepareReleaseDependencies
:react-native-fbsdk:compileReleaseAidl UP-TO-DATE
:react-native-fbsdk:compileReleaseNdk UP-TO-DATE
:react-native-fbsdk:compileLint UP-TO-DATE
:react-native-fbsdk:copyReleaseLint UP-TO-DATE
:react-native-fbsdk:compileReleaseRenderscript UP-TO-DATE
:react-native-fbsdk:generateReleaseBuildConfig UP-TO-DATE
:react-native-fbsdk:generateReleaseResValues UP-TO-DATE
:react-native-fbsdk:generateReleaseResources UP-TO-DATE
:react-native-fbsdk:mergeReleaseResources UP-TO-DATE
:react-native-fbsdk:processReleaseManifest UP-TO-DATE
:react-native-fbsdk:processReleaseResources UP-TO-DATE
:react-native-fbsdk:generateReleaseSources UP-TO-DATE
:react-native-fbsdk:incrementalReleaseJavaCompilationSafeguard UP-TO-DATE
:react-native-fbsdk:compileReleaseJavaWithJavac UP-TO-DATE
:react-native-fbsdk:extractReleaseAnnotations UP-TO-DATE
:react-native-fbsdk:mergeReleaseShaders UP-TO-DATE
:react-native-fbsdk:compileReleaseShaders UP-TO-DATE
:react-native-fbsdk:generateReleaseAssets UP-TO-DATE
:react-native-fbsdk:mergeReleaseAssets UP-TO-DATE
:react-native-fbsdk:mergeReleaseProguardFiles UP-TO-DATE
:react-native-fbsdk:packageReleaseRenderscript UP-TO-DATE
:react-native-fbsdk:packageReleaseResources UP-TO-DATE
:react-native-fbsdk:processReleaseJavaRes UP-TO-DATE
:react-native-fbsdk:transformResourcesWithMergeJavaResForRelease UP-TO-DATE
:react-native-fbsdk:transformClassesAndResourcesWithSyncLibJarsForRelease UP-TO-DATE
:react-native-fbsdk:mergeReleaseJniLibFolders UP-TO-DATE
:react-native-fbsdk:transformNative_libsWithMergeJniLibsForRelease UP-TO-DATE
:react-native-fbsdk:transformNative_libsWithSyncJniLibsForRelease UP-TO-DATE
:react-native-fbsdk:bundleRelease UP-TO-DATE
:app:prepareComAndroidSupportAnimatedVectorDrawable2500Library UP-TO-DATE
:app:prepareComAndroidSupportAppcompatV72500Library UP-TO-DATE
:app:prepareComAndroidSupportCardviewV72500Library UP-TO-DATE
:app:prepareComAndroidSupportCustomtabs2500Library UP-TO-DATE
:app:prepareComAndroidSupportSupportCompat2500Library UP-TO-DATE
:app:prepareComAndroidSupportSupportCoreUi2500Library UP-TO-DATE
:app:prepareComAndroidSupportSupportCoreUtils2500Library UP-TO-DATE
:app:prepareComAndroidSupportSupportFragment2500Library UP-TO-DATE
:app:prepareComAndroidSupportSupportMediaCompat2500Library UP-TO-DATE
:app:prepareComAndroidSupportSupportV42500Library UP-TO-DATE
:app:prepareComAndroidSupportSupportVectorDrawable2500Library UP-TO-DATE
:app:prepareComFacebookAndroidFacebookAndroidSdk4221Library UP-TO-DATE
:app:prepareComFacebookFbuiTextlayoutbuilderTextlayoutbuilder100Library UP-TO-DATE
:app:prepareComFacebookFrescoDrawee101Library UP-TO-DATE
:app:prepareComFacebookFrescoFbcore101Library UP-TO-DATE
:app:prepareComFacebookFrescoFresco101Library UP-TO-DATE
:app:prepareComFacebookFrescoImagepipeline101Library UP-TO-DATE
:app:prepareComFacebookFrescoImagepipelineBase101Library UP-TO-DATE
:app:prepareComFacebookFrescoImagepipelineOkhttp3101Library UP-TO-DATE
:app:prepareComFacebookReactReactNative0461Library UP-TO-DATE
:app:prepareComFacebookSoloaderSoloader010Library UP-TO-DATE
:app:prepareHeldReactNativeFbsdkUnspecifiedLibrary UP-TO-DATE
:app:prepareOrgWebkitAndroidJscR174650Library UP-TO-DATE
:app:prepareDebugDependencies
:app:compileDebugAidl UP-TO-DATE
:app:compileDebugRenderscript UP-TO-DATE
:app:generateDebugBuildConfig UP-TO-DATE
:app:mergeDebugShaders UP-TO-DATE
:app:compileDebugShaders UP-TO-DATE
:app:generateDebugAssets UP-TO-DATE
:app:mergeDebugAssets UP-TO-DATE
:app:generateDebugResValues UP-TO-DATE
:app:generateDebugResources UP-TO-DATE
:app:mergeDebugResources UP-TO-DATE
:app:bundleDebugJsAndAssets SKIPPED
:app:processDebugManifest UP-TO-DATE
:app:processDebugResources UP-TO-DATE
:app:generateDebugSources UP-TO-DATE
:app:incrementalDebugJavaCompilationSafeguard UP-TO-DATE
:app:compileDebugJavaWithJavac
:app:compileDebugJavaWithJavac - is not incremental (e.g. outputs have changed, no previous execution, etc.).
/Users/brendon/Desktop/Held/android/app/src/main/java/com/held/MainApplication.java:36: error: constructor FBSDKPackage in class FBSDKPackage cannot be applied to given types;
new FBSDKPackage()
^
required: CallbackManager
found: no arguments
reason: actual and formal argument lists differ in length
1 error
:app:compileDebugJavaWithJavac FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:compileDebugJavaWithJavac'.
> Compilation failed; see the compiler error output for details.
* 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: 6.27 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/android-setup.html
I was created a blank project and it was working fine (Android Emulator). After, I installed and follow the Facebook SDK and then it not work more. I got this error above.
Issue Analytics
- State:
- Created 6 years ago
- Comments:5
Top Results From Across the Web
Make sure you have an Android emulator running or a device ...
Open Android Studio · Open anyproject or create an empty project · Find Action (CMD + SHIFT + A) type: AVD Manager ·...
Read more >Make sure you have an Android emulator running or ... - GitHub
Make sure you have an Android emulator running or a device connected and have set up your Android development environment: ...
Read more >Troubleshoot known issues with Android Emulator
This page lists known issues, workarounds, and troubleshooting tips for the Android Emulator. If you encounter an issue not listed here or ...
Read more >error failed to install the app. make sure you have an android ...
Make sure you have an Android emulator running or a device connected and have set up your Android development environment:.
Read more >Managing Virtual Devices with the Android Device Manager
You can use these virtual devices to run and test your app without ... Be sure to install the Android SDK at its...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I solved the issue moving the project from E into C, where Windows and all the other stuff are installed too.
Thanks @Brenw10 for your answer
To fix that you need to set ANDROID as environment variable.