react-native icon indicating copy to clipboard operation
react-native copied to clipboard

Execution failed for task ':app:processDebugResources'.

Open feng003 opened this issue 10 years ago • 10 comments

My frist install the android studio in the windows 7. The config of SDK Platforms , I chooice Android 6.0 (Marshmallow) that contains Google APIs、Intel x86 Atom System Image、Intel x86 Atom_64 System Image and Google APIs Intel x86 Atom_64 System Image,and SDK Tools that contains Android SDK Build-Tools 23.0.1 and Android SDK Build-Tools 23.0.3.

$ react-native run-android Starting JS server... Running F:\Android\sdk/platform-tools/adb reverse tcp:8081 tcp:8081 error: no devices/emulators found Could not run adb reverse: Command failed: F:\Android\sdk/platform-tools/adb re erse tcp:8081 tcp:8081 Building and installing the app on the device (cd android && gradlew.bat instal Debug... :app:preBuild UP-TO-DATE :app:preDebugBuild UP-TO-DATE :app:checkDebugManifest :app:preReleaseBuild UP-TO-DATE :app:prepareComAndroidSupportAppcompatV72301Library UP-TO-DATE :app:prepareComAndroidSupportRecyclerviewV72301Library UP-TO-DATE :app:prepareComAndroidSupportSupportV42321Library UP-TO-DATE :app:prepareComFacebookFrescoDrawee0110Library UP-TO-DATE :app:prepareComFacebookFrescoFbcore0110Library UP-TO-DATE :app:prepareComFacebookFrescoFresco0110Library UP-TO-DATE :app:prepareComFacebookFrescoImagepipeline0110Library UP-TO-DATE :app:prepareComFacebookFrescoImagepipelineBase0110Library UP-TO-DATE :app:prepareComFacebookFrescoImagepipelineOkhttp30110Library UP-TO-DATE :app:prepareComFacebookReactReactNative0320Library UP-TO-DATE :app:prepareComFacebookSoloaderSoloader010Library 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: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 FAILED

FAILURE: Build failed with an exception.

  • What went wrong: Execution failed for task ':app:processDebugResources'.

    at index 4

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

BUILD FAILED

  • Platform(s) :Android
  • Operating System:Windows7_64

feng003 avatar Sep 01 '16 01:09 feng003

I meet this problem as you, which when I use Genymotion. But when I change another virtual device, it passed. You may try.

neverlous avatar Sep 01 '16 06:09 neverlous

which virtual device ? Now I do not use Genymotion, and only install android studio.

feng003 avatar Sep 01 '16 07:09 feng003

You need to open sdk manager and reinstall sdk build tools.

sunnylqm avatar Sep 12 '16 09:09 sunnylqm

I solved the same problem by installing "Android SDK Platform 23" and "Soures for Android 23" under Android 6.0 (Marshmallow)

ccgitgit avatar Sep 21 '16 16:09 ccgitgit

Hi @feng003, looks like @ccgitgit 's solution offers a fix or workaround for this issue.

ericnakagawa avatar Jan 10 '17 18:01 ericnakagawa

had the same issue. packager could not close AndroidManifest file which was open. Closed it on editor and it worked.

maromdahari avatar Apr 27 '17 22:04 maromdahari

I solve it uninstalling Android SDK Tools from Android Studio, after in the cmd I run the app, automatically the Android SDK Tools will be installed and the app works

ajolote-656 avatar Feb 21 '18 19:02 ajolote-656

I solve this issue.

E:\AndroidData\mobile-app\AwesomeProject\android\app\build

remove the all files in build folder and run the app, the app work properly

SajidAli65 avatar May 25 '18 05:05 SajidAli65

Thanks SajidAli65. Last thing I try. It work ")

Adcrazynoga avatar May 25 '18 08:05 Adcrazynoga

Thanks a lot, this worked for me :)

JohanJoshua avatar Jul 18 '18 17:07 JohanJoshua