Question by
unity_gJ-xASdm8I61GA · May 06, 2019 at 06:40 PM ·
build-error
Gradle build failed.
Hey,
I have a problem while building Android project after uploadin onesignal sdk - CommandInvokationFailure: Gradle build failed.
CommandInvokationFailure: Gradle build failed.
/Applications/Unity/PlaybackEngines/AndroidPlayer/Tools/OpenJDK/MacOS/bin/java -classpath "/Applications/Unity/PlaybackEngines/AndroidPlayer/Tools/gradle/lib/gradle-launcher-4.6.jar" org.gradle.launcher.GradleMain "-Dorg.gradle.jvmargs=-Xmx4096m" "assembleRelease"
stderr[
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':processReleaseResources'.
> Android resource linking failed
Output: error: resource style/Theme.AppCompat.NoActionBar (aka com.rtbtech.bananainthejungle:style/Theme.AppCompat.NoActionBar) not found.
error: resource style/Theme.AppCompat.Dialog (aka com.rtbtech.bananainthejungle:style/Theme.AppCompat.Dialog) not found.
error: failed linking references.
Command: /Users/rtbs146/.gradle/caches/transforms-1/files-1.1/aapt2-3.2.0-4818971-osx.jar/9ee0bb737bea08e9cec625cf272fa574/aapt2-3.2.0-4818971-osx/aapt2 link -I\
/Users/rtbs146/Library/Android/sdk/platforms/android-28/android.jar\
--manifest\
/Users/rtbs146/Desktop/Banana bp/Banan bup 04:04:2019 2/banananan/Temp/gradleOut/build/intermediates/merged_manifests/release/processReleaseManifest/merged/AndroidManifest.xml\
-o\
/Users/rtbs146/Desktop/Banana bp/Banan bup 04:04:2019 2/banananan/Temp/gradleOut/build/intermediates/processed_res/release/processReleaseResources/out/resources-release.ap_\
-R\
@/Users/rtbs146/Desktop/Banana bp/Banan bup 04:04:2019 2/banananan/Temp/gradleOut/build/intermediates/incremental/processReleaseResources/resources-list-for-resources-release.ap_.txt\
--auto-add-overlay\
--java\
/Users/rtbs146/Desktop/Banana bp/Banan bup 04:04:2019 2/banananan/Temp/gradleOut/build/generated/not_namespaced_r_class_sources/release/processReleaseResources/r\
--custom-package\
com.rtbtech.bananainthejungle\
-0\
apk\
-0\
.unity3d\
-0\
.ress\
-0\
.resource\
-0\
.obb\
--output-text-symbols\
/Users/rtbs146/Desktop/Banana bp/Banan bup 04:04:2019 2/banananan/Temp/gradleOut/build/intermediates/symbols/release/R.txt\
--no-version-vectors
Daemon: AAPT2 aapt2-3.2.0-4818971-osx Daemon #0
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 8s
]
stdout[
:checkReleaseClasspath
:preBuild UP-TO-DATE
:ChartboostSDK:preBuild UP-TO-DATE
:ChartboostSDK:preReleaseBuild UP-TO-DATE
:ChartboostSDK:checkReleaseManifest
:ChartboostSDK:processReleaseManifest
:GoogleMobileAdsPlugin:preBuild UP-TO-DATE
:GoogleMobileAdsPlugin:preReleaseBuild UP-TO-DATE
:GoogleMobileAdsPlugin:checkReleaseManifest
:GoogleMobileAdsPlugin:processReleaseManifest
:OneSignalConfig:preBuild UP-TO-DATE
:OneSignalConfig:preReleaseBuild UP-TO-DATE
:OneSignalConfig:checkReleaseManifest
:OneSignalConfig:processReleaseManifest
:preReleaseBuild
:ChartboostSDK:compileReleaseAidl NO-SOURCE
:GoogleMobileAdsPlugin:compileReleaseAidl NO-SOURCE
:OneSignalConfig:compileReleaseAidl NO-SOURCE
:compileReleaseAidl NO-SOURCE
:ChartboostSDK:packageReleaseRenderscript NO-SOURCE
:GoogleMobileAdsPlugin:packageReleaseRenderscript NO-SOURCE
:OneSignalConfig:packageReleaseRenderscript NO-SOURCE
:compileReleaseRenderscript
:checkReleaseManifest
:generateReleaseBuildConfig
:prepareLintJar
:mainApkListPersistenceRelease
:generateReleaseResValues
:generateReleaseResources
:ChartboostSDK:compileReleaseRenderscript
:ChartboostSDK:generateReleaseResValues
:ChartboostSDK:generateReleaseResources
:ChartboostSDK:packageReleaseResources
:GoogleMobileAdsPlugin:compileReleaseRenderscript
:GoogleMobileAdsPlugin:generateReleaseResValues
:GoogleMobileAdsPlugin:generateReleaseResources
:GoogleMobileAdsPlugin:packageReleaseResources
:OneSignalConfig:compileReleaseRenderscript
:OneSignalConfig:generateReleaseResValues
:OneSignalConfig:generateReleaseResources
:OneSignalConfig:packageReleaseResources
:mergeReleaseResources
:createReleaseCompatibleScreenManifests
:processReleaseManifest
:splitsDiscoveryTaskRelease
:ChartboostSDK:generateReleaseRFile
:GoogleMobileAdsPlugin:generateReleaseRFile
:OneSignalConfig:generateReleaseRFile
:processReleaseResources FAILED
31 actionable tasks: 31 executed
]
exit code: 1
UnityEditor.Android.Command.WaitForProgramToRun (UnityEditor.Utils.Program p, UnityEditor.Android.Command+WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg) (at <df7ba4d130594d168eec372b930522d4>:0)
UnityEditor.Android.Command.Run (System.Diagnostics.ProcessStartInfo psi, UnityEditor.Android.Command+WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg) (at <df7ba4d130594d168eec372b930522d4>:0)
UnityEditor.Android.Command.Run (System.String command, System.String args, System.String workingdir, UnityEditor.Android.Command+WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg) (at <df7ba4d130594d168eec372b930522d4>:0)
UnityEditor.Android.AndroidJavaTools.RunJava (System.String args, System.String workingdir, System.Action`1[T] progress, System.String error) (at <df7ba4d130594d168eec372b930522d4>:0)
UnityEditor.Android.GradleWrapper.Run (UnityEditor.Android.AndroidJavaTools javaTools, System.String workingdir, System.String task, System.Action`1[T] progress) (at <df7ba4d130594d168eec372b930522d4>:0)
Rethrow as GradleInvokationException: Gradle build failed
UnityEditor.Android.GradleWrapper.Run (UnityEditor.Android.AndroidJavaTools javaTools, System.String workingdir, System.String task, System.Action`1[T] progress) (at <df7ba4d130594d168eec372b930522d4>:0)
UnityEditor.Android.PostProcessor.Tasks.BuildGradleProject.Execute (UnityEditor.Android.PostProcessor.PostProcessorContext context) (at <df7ba4d130594d168eec372b930522d4>:0)
UnityEditor.Android.PostProcessor.PostProcessRunner.RunAllTasks (UnityEditor.Android.PostProcessor.PostProcessorContext context) (at <df7ba4d130594d168eec372b930522d4>:0)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
Comment
I have the same issue after I upgraded the facebook SD$$anonymous$$