React-Native项目停留在:app:installDebug

每次运行我的react-native项目时,它都会陷入99%的困境。 我试图运行./Gradlew干净,杀死亚行,但没有任何作品。 我已经使用我的设备通过USB,genymotion和Android工作室模拟器,它总是相同的…

在设备上构build和安装应用程序(cd android && gradlew.bat install Debug)…增量java编译是一项孵化function。 :app:prebuild UP-TO-DATE:app:preDebugBuild UP-TO-DATE:app:checkDebugManifest:app:preReleaseBuild UP-TO-DATE:react-native-maps:preBuild UP-TO-DATE:react-native-maps :preReleaseBuild UP-TO-DATE:react-native-maps:checkReleaseManifest:react-native-maps:preDebugAndroidTestBuild UP-TO-DATE:react-native-maps:preDebugBuild UP-TO-DATE:react-native-maps:preDebugUnitTestBuild UP -TO-DATE:react-native-maps:pre-releaseUnitTestBuild UP-TO-DATE:react-native-maps:prepareComAndroidSupportAppcompatV72301Library UP-TO-DATE:react-native-maps:prepareComAndroidSupportSupportV42400Library UP-TO-DATE:react-native-maps: prepareComFacebookFbuiTextlayoutbuilderTextlayoutbuilder100Library UP-TO-DATE:react-native-maps:prepareComFacebookFrescoDrawee130Library UP-TO-DATE:react-native-maps:prepareComFacebookFrescoFbcore130Library UP-TO-DATE:react-native-maps:prepareComFacebookFrescoFresco130Library UP-TO-DATE:react-native- maps:prepareComFacebookFrescoImagepipeline130Library UP-TO-DATE:react-native-maps: prepareComFacebookFrescoImagepipelineBase130Library UP-TO-DATE:react-native-maps:prepareComFacebookFrescoImagepipelineOkhttp3130Library UP-TO-DATE:react-native-maps:prepareComFacebookReactReactNative0493Library UP-TO-DATE:react-native-maps:prepareComFacebookSoloaderSoloader010Library UP-TO-DATE:react-native- maps:prepareComGoogleAndroidGmsPlayServicesBase1024Library UP-TO-DATE:react-native-maps:prepareComGoogleAndroidGmsPlayServicesBasement1024Library UP-TO-DATE:react-native-maps:prepareComGoogleAndroidGmsPlayServicesMaps1024Library UP-TO-DATE:react-native-maps:prepareComGoogleAndroidGmsPlayServicesTasks1024Library UP-TO-DATE:react- native-maps:prepareOrgWebkitAndroidJscR174650Library UP-TO-DATE:react-native-maps:prepareReleaseDependencies:react-native-maps:compileReleaseAidl UP-TO-DATE:react-native-maps:compileReleaseNdk UP-TO-DATE:react-native-maps :compileLint UP-TO-DATE:react-native-maps:copyReleaseLint UP-TO-DATE:react-native-maps:compileReleaseRenderscript UP-TO-DATE: react-native-maps:generateReleaseBuildConfig UP-TO-DATE:react-native-maps:generateReleaseResValues UP-TO-DATE:react-native-maps:generateReleaseResources UP-TO-DATE:react-native-maps:mergeReleaseResources UP-TO- DATE:react-native-maps:processReleaseManifest UP-TO-DATE:react-native-maps:processReleaseResources UP-TO-DATE:react-native-maps:generateReleaseSources UP-TO-DATE:react-native-maps:incrementalReleaseJavaCompilationSafeguard UP- TO-DATE:react-native-maps:compileReleaseJavaWithJavac UP-TO-DATE:react-native-maps:extractReleaseAnnotations UP-TO-DATE:react-native-maps:mergeReleaseShaders UP-TO-DATE:react-native-maps:compileReleaseShaders UP-TO-DATE:react-native-maps:generateReleaseAssets UP-TO-DATE:react-native-maps:mergeReleaseAssets UP-TO-DATE:react-native-maps:mergeReleaseProguardFiles UP-TO-DATE:react-native-maps :packageReleaseRenderscript UP-TO-DATE:react-native-maps:packageReleaseResources UP-TO-DATE:react-native-maps:processReleaseJavaRes UP-TO-DATE:react-native -maps:transformResourcesWithMergeJavaResForRelease UP-TO-DATE:react-native-maps:transformClassesAndResourcesWithSyncLibJarsForRelease UP-TO-DATE:react-native-maps:mergeReleaseJniLibFolders UP-TO-DATE:react-native-maps:transformNative_libsWithMergeJniLibsForRelease UP-TO-DATE:react -native-maps:transformNative_libsWithSyncJniLibsForRelease UP-TO-DATE:react-native-maps:bundleRelease UP-TO-DATE:app:prepareComAndroidSupportAppcompatV72301Library UP-TO-DATE:app:prepareComAndroidSupportSupportV42400Library UP-TO-DATE:app:prepareComFacebookFbuiTextlayoutbuilderTextlayoutbuilder100Library UP-TO-date:app:prepareComFacebookFrescoDrawee130Library最新date:app:prepareComFacebookFrescoFbcore130Library最新date:app:prepareComFacebookFrescoFresco130Library最新date:app:prepareComFacebookFrescoImagepipeline130Library最新date:app:prepareComFacebookFrescoImagepipelineBase130Library最新date:app:prepareComFacebookFrescoImagepipelineOkhttp3130Library最新date:app:prepareComFaceb ookReactReactNative0493Library最新date:app:prepareComFacebookSoloaderSoloader010Library最新date:app:prepareComGoogleAndroidGmsPlayServicesBase1024Library最新date:app:prepareComGoogleAndroidGmsPlayServicesBasement1024Library最新date:app:prepareComGoogleAndroidGmsPlayServicesMaps1024Library UP-TO-DATE:app:prepareComGoogleAndroidGmsPlayServicesTasks1024Library UP-TO-DATE: DATE:app:prepareOrgWebkitAndroidJscR174650Library UP-TO-DATE:app:prepareSAGEReactNativeMapsUnspecifiedLibrary 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:copyDebugIconFonts UP-TO-DATE:app:processDebugManifest 最新date:app:processDebugResources UP-TO-DATE:app:generateDebugSources UP-TO-DATE:app:incrementalDebugJavaCompilationSafeguard UP-TO-DATE:app:compileDebugJavaWithJavac UP-TO-DATE:app:compileDebugNdk UP-TO-DATE :app:compileDebugSources UP-TO-DATE:app:transformClassesWithDexForDebug UP-TO-DATE:app:mergeDebugJniLibFolders UP-TO-DATE:app:transformNative_libsWithMergeJniLibsForDebug UP-TO-DATE:app:processDebugJavaRes UP-TO-DATE:app:transformResourcesWithMergeJavaResForDebug UP -TO-DATE:app:validateSigningDebug:app:packageDebug UP-TO-DATE:app:assembleDebug UP-TO-DATE:app:installDebug在'LG-D690n – 5.0.2'上安装APK'app-debug.apk'应用:debugging

build设99%>:app:installDebug

在这里,当你的app-debug.apk是在你的项目的“android / app / build / outputs / apk /”目录下生成的,所以你可以直接复制粘贴app-debug.apk到你的设备并安装apk ,或者你可以把这个apk拖放到你的虚拟设备(Genymotion)中。 所以你可以继续你的工作。

而对于上面的情况,你必须在Genymotion中设置android sdk的path,就像在nelow picture中一样

在这里输入图像说明

然后重新启动你的genymotion设备,然后使用“ react-native run-andorid

在您的项目根目录中。