crazycodeboy / react-native-splash-screen

A splash screen for react-native, hide when application loaded ,it works on iOS and Android.
MIT License
5.59k stars 1.09k forks source link

FAILURE: Build failed with an exception. #276

Open js1121302139 opened 6 years ago

js1121302139 commented 6 years ago
"react": "16.4.0",
"react-native": "0.55.4",

JS server already running. Building 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-splash-screen:preBuild UP-TO-DATE :react-native-splash-screen:preReleaseBuild UP-TO-DATE :react-native-splash-screen:checkReleaseManifest :react-native-splash-screen:preDebugAndroidTestBuild UP-TO-DATE :react-native-splash-screen:preDebugBuild UP-TO-DATE :react-native-splash-screen:preDebugUnitTestBuild UP-TO-DATE :react-native-splash-screen:preReleaseUnitTestBuild UP-TO-DATE :react-native-splash-screen:prepareAndroidArchLifecycleRuntime100Library UP-TO-DATE :react-native-splash-screen:prepareComAndroidSupportAnimatedVectorDrawable2610Library UP-TO-DATE :react-native-splash-screen:prepareComAndroidSupportAppcompatV72610Library UP-TO-DATE :react-native-splash-screen:prepareComAndroidSupportSupportCompat2610Library UP-TO-DATE :react-native-splash-screen:prepareComAndroidSupportSupportCoreUi2610Library UP-TO-DATE :react-native-splash-screen:prepareComAndroidSupportSupportCoreUtils2610Library UP-TO-DATE :react-native-splash-screen:prepareComAndroidSupportSupportFragment2610Library UP-TO-DATE :react-native-splash-screen:prepareComAndroidSupportSupportMediaCompat2610Library UP-TO-DATE :react-native-splash-screen:prepareComAndroidSupportSupportV42610Library UP-TO-DATE :react-native-splash-screen:prepareComAndroidSupportSupportVectorDrawable2610Library UP-TO-DATE :react-native-splash-screen:prepareComFacebookFbuiTextlayoutbuilderTextlayoutbuilder100Library UP-TO-DATE :react-native-splash-screen:prepareComFacebookFrescoDrawee130Library UP-TO-DATE :react-native-splash-screen:prepareComFacebookFrescoFbcore130Library UP-TO-DATE :react-native-splash-screen:prepareComFacebookFrescoFresco130Library UP-TO-DATE :react-native-splash-screen:prepareComFacebookFrescoImagepipeline130Library UP-TO-DATE :react-native-splash-screen:prepareComFacebookFrescoImagepipelineBase130Library UP-TO-DATE :react-native-splash-screen:prepareComFacebookFrescoImagepipelineOkhttp3130Library UP-TO-DATE :react-native-splash-screen:prepareComFacebookReactReactNative0554Library UP-TO-DATE :react-native-splash-screen:prepareComFacebookSoloaderSoloader010Library UP-TO-DATE :react-native-splash-screen:prepareOrgWebkitAndroidJscR174650Library UP-TO-DATE :react-native-splash-screen:prepareReleaseDependencies :react-native-splash-screen:compileReleaseAidl UP-TO-DATE :react-native-splash-screen:compileReleaseNdk UP-TO-DATE :react-native-splash-screen:compileLint UP-TO-DATE :react-native-splash-screen:copyReleaseLint UP-TO-DATE :react-native-splash-screen:compileReleaseRenderscript UP-TO-DATE :react-native-splash-screen:generateReleaseBuildConfig UP-TO-DATE :react-native-splash-screen:generateReleaseResValues UP-TO-DATE :react-native-splash-screen:generateReleaseResources UP-TO-DATE :react-native-splash-screen:mergeReleaseResources UP-TO-DATE :react-native-splash-screen:processReleaseManifest UP-TO-DATE :react-native-splash-screen:processReleaseResources UP-TO-DATE :react-native-splash-screen:generateReleaseSources UP-TO-DATE :react-native-splash-screen:incrementalReleaseJavaCompilationSafeguard UP-TO-DATE :react-native-splash-screen:compileReleaseJavaWithJavac UP-TO-DATE :react-native-splash-screen:extractReleaseAnnotations UP-TO-DATE :react-native-splash-screen:mergeReleaseShaders UP-TO-DATE :react-native-splash-screen:compileReleaseShaders UP-TO-DATE :react-native-splash-screen:generateReleaseAssets UP-TO-DATE :react-native-splash-screen:mergeReleaseAssets UP-TO-DATE :react-native-splash-screen:mergeReleaseProguardFiles UP-TO-DATE :react-native-splash-screen:packageReleaseRenderscript UP-TO-DATE :react-native-splash-screen:packageReleaseResources UP-TO-DATE :react-native-splash-screen:processReleaseJavaRes UP-TO-DATE :react-native-splash-screen:transformResourcesWithMergeJavaResForRelease UP-TO-DATE :react-native-splash-screen:transformClassesAndResourcesWithSyncLibJarsForRelease UP-TO-DATE :react-native-splash-screen:mergeReleaseJniLibFolders UP-TO-DATE :react-native-splash-screen:transformNative_libsWithMergeJniLibsForRelease UP-TO-DATE :react-native-splash-screen:transformNative_libsWithSyncJniLibsForRelease UP-TO-DATE :react-native-splash-screen:bundleRelease UP-TO-DATE :app:prepareAndroidArchLifecycleRuntime100Library UP-TO-DATE :app:prepareComAndroidSupportAnimatedVectorDrawable2610Library UP-TO-DATE :app:prepareComAndroidSupportAppcompatV72610Library UP-TO-DATE :app:prepareComAndroidSupportSupportCompat2610Library UP-TO-DATE :app:prepareComAndroidSupportSupportCoreUi2610Library UP-TO-DATE :app:prepareComAndroidSupportSupportCoreUtils2610Library UP-TO-DATE :app:prepareComAndroidSupportSupportFragment2610Library UP-TO-DATE :app:prepareComAndroidSupportSupportMediaCompat2610Library UP-TO-DATE :app:prepareComAndroidSupportSupportV42610Library UP-TO-DATE :app:prepareComAndroidSupportSupportVectorDrawable2610Library UP-TO-DATE :app:prepareComFacebookFbuiTextlayoutbuilderTextlayoutbuilder100Library UP-TO-DATE :app:prepareComFacebookFrescoDrawee130Library UP-TO-DATE :app:prepareComFacebookFrescoFbcore130Library UP-TO-DATE :app:prepareComFacebookFrescoFresco130Library UP-TO-DATE :app:prepareComFacebookFrescoImagepipeline130Library UP-TO-DATE :app:prepareComFacebookFrescoImagepipelineBase130Library UP-TO-DATE :app:prepareComFacebookFrescoImagepipelineOkhttp3130Library UP-TO-DATE :app:prepareComFacebookReactReactNative0554Library UP-TO-DATE :app:prepareComFacebookSoloaderSoloader010Library UP-TO-DATE :app:prepareOrgWebkitAndroidJscR174650Library UP-TO-DATE :app:prepareYichangqiusaiReactNativeSplashScreenUnspecifiedLibrary 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 /Users/jiangsong/git/apps/test1/yichangqiusai/android/app/build/intermediates/res/merged/debug/values-v24/values-v24.xml:3: AAPT: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.Button.Borderless.Colored'.

/Users/jiangsong/git/apps/test1/yichangqiusai/android/app/build/intermediates/res/merged/debug/values-v24/values-v24.xml:4: AAPT: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.Button.Colored'.

/Users/jiangsong/git/apps/test1/yichangqiusai/android/app/build/intermediates/res/merged/debug/values-v26/values-v26.xml:15:21-54: AAPT: Noresource found that matches the given name: attr 'android:keyboardNavigationCluster'.

/Users/jiangsong/git/apps/test1/yichangqiusai/android/app/build/intermediates/res/merged/debug/values-v24/values-v24.xml:3: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.Button.Borderless.Colored'.

/Users/jiangsong/git/apps/test1/yichangqiusai/android/app/build/intermediates/res/merged/debug/values-v24/values-v24.xml:4: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.Button.Colored'.

/Users/jiangsong/git/apps/test1/yichangqiusai/android/app/build/intermediates/res/merged/debug/values-v26/values-v26.xml:15: error: Error: No resource found that matches the given name: attr 'android:keyboardNavigationCluster'.

:app:processDebugResources FAILED

FAILURE: Build failed with an exception.

BUILD FAILED

Total time: 7.628 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

js1121302139 commented 6 years ago

image

rosiearms commented 6 years ago

not sure if your issue is exactly the same but I just did a build clean in android studio and it fixed this error. I followed this: https://stackoverflow.com/questions/46494738/errorexecution-failed-for-task-apptransformclasseswithdexbuilderfordebug

Hope it helps!

js1121302139 commented 6 years ago

Thanks ,I’m try

segheysens commented 6 years ago

~@js1121302139 I'm receiving the same error, have you had any luck in fixing this? I tried @rosiearms' suggestion, too, but it didn't fix anything for me.~

I was able to avoid this error by rolling react-native-splash-screen back to v3.0.9. @js1121302139 try npm uninstall react-native-splash-screen and then npm install --save react-native-splash-screen@3.0.9, then rebuilding.

@crazycodeboy Could this have something to do with commit c8bb8d4 or another recent commit?

blbradley commented 6 years ago

@segheysens Thanks for the report! Rollback helped.