I am integrating Playscape 1.11 SDK to my game in unity. I keep getting an error stating: An error occurred while applying post-build logic: failed to apply patch to the .jar file
I have checked to see if Android 19 and google-play-services are downloaded/installed in the SDK.
Looks like some files were missed. Check that you have removed all previous files of Playscape SDK before importing new version into your Unity project:
/Assets/Plugins/Android/PlayscapeManifestFragments
/Assets/Plugins/Android/PlayscapePublishingKit
/Assets/Plugins/Playscape
/Assets/Temp
/Assets/StreamingAssets/fonts
/Assets/StreamingAssets/level_up_icons
/Assets/StreamingAssets/playscape
/Assets/StreamingAssets/playscape_bootstrap
/Assets/StreamingAssets/WelcomeMessage
Related
I'm having an error only when running on Android in unity.
This is the error:
Unity ads initialization failed: internal_error - unity ads sdk failed to initialize due to environment check failed
I used the correct keys to initialize my ads on android.
Does anybody know how to fix this?
This error is most likely due to an outdated version of the unity ads package.
Please try removing the current version you have and installing the latest through the unity package manager. Chances are you will need to update some code as there have been some breaking changes in the past.
I was trying to make some ar and i was watching the videos on youtube how to do that and i followed along.But at last it showed me some errors.
I am putting some screenshot so that you can tell what's wrong i am doing...
Thanks in advance for helping me..
THESE ARE THE PACKAGES THAT I HAVE INSTALLED IN FOR THIS AR
AR FOUNDATION - 2.1.10
2 AR CORE -2.1.12
3 AR KIT - 2.1.10
Having the same problem as well. Android APK compiles fine before adding AR packages. Added AR Foundation 2.1.10, AR Subsystems 2.1.3 and ARCore XR Plugin 2.1.12 (All 2019.4 verified). Android API set to 24, Vulkan removed, but fails at this point.
Build Failure Message
Turns out that it's an issue with Gradle, you need to use Gradle 5.6.4 and follow the instructions here for Unity 2019.4 https://developers.google.com/ar/develop/unity/android-11-build
I ran into problems with this Unity version too. I found no fix for this Unity version, but I tried the 2020.1.10f1 version and there it all worked perfectly fine for me.
I am using the skillz sdk to develop a quiz game which requires gradle. My current version of unity is 2019.3.0.a5. When I build the project I get the following errors.
> Failed to apply plugin [id 'com.android.library']
> Using multiple versions of the Android Gradle plugin in the same build is
not allowed.
'C:\Users\Zachary Edgell\cash quiz\Temp\gradleOut\launcher' is using
version 3.2.0
'C:\Users\Zachary Edgell\cash quiz\Temp\gradleOut\unityLibrary' is
using version 3.2.1
I have attempted to down grade to unity 2019.1.8f1when I try to build again I get the error
FileNotFoundException: Temp\gradleOut\build\outputs\apk\release\gradleOut-release.apk does not exist
When I try to do a development build on 2019.1.8f1 I get the following error
FileNotFoundException:Temp\gradleOut\build\outputs\apk\release\gradleOut-debug.apk does not exist
I have also attempted to delete the temp folder and rebuild but I get the same error.
The problem was solved by downgrading to unity 2018.4.3f1 if any one is having this issue just back up your files then try to downgrade to unity 2018.4.3f1
It shows error 'An error occured while applying post-build logic: Object reference not set to an instance of an object' when it builds two-file android build: APK + OBB.
Playscape's ApkCreator try to extract config file 'assets/playscape/PlayscapeConfig.xml' from APK. But config is inside .OBB file.
How to fix it?
We're currently do not support APK expansion files (for applications that are bigger than 50MB). We expect to support this functionality in a future version. Can you contact me directly so can discuss your game specifically. sharonh#playscape.com
Thanks,
Sharon
I had Facebook Unity SDK working in my game prototype until I updated to Unity 4.3. After the update build fails on dSYM generation in xCode. Error message:
Command /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/dsymutil failed with exit code 11
Most notably before the final error message above I get this warning:
ld: warning: instance method 'application:openURL:sourceApplication:annotation:' in category from /Users//Library/Developer/Xcode/DerivedData/Unity-iPhone-duxgtdhujpdgtjbanfxzqinkvybw/Build/Intermediates/Unity-iPhone.build/Debug-iphoneos/Unity-iPhone.build/Objects-normal/armv7/FbUnityInterface.o overrides method from class in /Users//Library/Developer/Xcode/DerivedData/Unity-iPhone-duxgtdhujpdgtjbanfxzqinkvybw/Build/Intermediates/Unity-iPhone.build/Debug-iphoneos/Unity-iPhone.build/Objects-normal/armv7/UnityAppController.o
I investigated this a bit and yes, it seems that both UnityAppController.mm and FbUnityInterface.mm define "openURL" method and that's what xCode doesn't like. I also checked the iOS build that I had worked with on earlier (4.2.x) Unity version and in that build Unity did not define openURL-method in any of its .mm files.
Version Info:
Facebook Unity SDK Version 4.3.4
Unity Editor Version 4.3 (Pro)
Xcode 5.0.2
Changes vs Unity xCode project default configuration:
Added the frameworks that AdMob requires
Added linker flag "-ObjC" that AdMob requires (Build Settings -> Other Linker Flags)
I tested linking without the "-ObjC" flag also. Result is the same. Any ideas on how to fix this?
-tomi
I ran into the same problem but only building with debugging enabled in Build Options. Turn off debugging and you get past it. Or, BuildOptions.None in your build pipeline.
Of course, no debugging ...
We just released version 4.3.6 of the sdk that fixes login with unity version 4.3. It's available at https://developers.facebook.com/