Unity Failed to Re-package Resources Error - unity3d

I am getting an error when i try to build my game for android. The error is :
CommandInvokationFailure: Failed to re-package resources. See the Console for details.
C:\Users\halil.cosgun\Desktop\ADTBundle\adt_bundle\sdk\build-tools\21.1.1\aapt.exe package --auto-add-overlay -v -f -m -J gen -M AndroidManifest.xml -S "res" -I "C:/Users/halil.cosgun/Desktop/ADTBundle/adt_bundle/sdk\platforms\android-21\android.jar" -F bin/resources.ap_ --extra-packages com.fusepowered.unitytest:com.google.android.gms:com.unity3d.player:com.google.android.gms -S "C:\Users\halil.cosgun\Desktop\Projects\AmbulanceFirstDeneme\Temp\StagingArea\android-libraries\FuseSDK\res" -S "C:\Users\halil.cosgun\Desktop\Projects\AmbulanceFirstDeneme\Temp\StagingArea\android-libraries\google-play-services_lib\res" -S "C:\Users\halil.cosgun\Desktop\Projects\AmbulanceFirstDeneme\Temp\StagingArea\android-libraries\play-services-base-6.5.87\res"
If I delete the play_game_services_libs folder (play_game_services.jar is in there), the build is successful. But, PlayGamesPlatform.Activate() code is not work. If I delete the FuseSDK, the build is successful. I know there is a conflict between this two plugins, but I didn't figure it out how I fix this problem.
Please help me.
Sincerely.
These are the screenshots my project folder :

Actually I didn't know how I can solve this problem at first. I tried so many ways to solve this error. First of all, I updated my JDK to latest version.(jdk1.8.0.65 - 64bit) - Then I deleted play_game_services_6.5.8.7 and AndroidSupportV4 which is in Plugins/Android/ folder. After that I added FuseSDK prefab to main scene of my project. Finally I hit Build and Run.
Before:
After:
Have a nice day! :)

Related

Xcode 14.0 command PhaseScriptExecution failed with a nonzero exit code

After updating my Xcode to the latest version 14.0. I am facing this issue if anyone know how to resolve it please let me know
Click properties on the project, go to build phases and check the option "For install builds only"
Maybe the problem is with "Run script"
Ex: I did change firebase crashlytics from "pod" to "Packeges".
But I not change script.
I have tried all the solutions in
"https://stackoverflow.com/questions/53289524/xcode-10-2-1-command-phasescriptexecution-failed-with-a-nonzero-exit-code"
My solutions is change TARGETS -> Build Phases. In the script field
form
"${PODS_ROOT}/FirebaseCrashlytics/run"
to
"${BUILD_DIR%/Build/*}/SourcePackages/checkouts/firebase-ios-sdk/Crashlytics/run"
In short the problem is your script, do it right
If Scrip is install builds only. U need
Targets -> Build Phases -> Run Scrip -> check "For install builds only"
Ex:
APP_PATH=“${TARGET_BUILD_DIR}/${WRAPPER_NAME}”
# This script loops through the frameworks embedded in the application and
# removes unused architectures.
find “$APP_PATH” -name ‘*.framework’ -type d | while read -r FRAMEWORK
do
FRAMEWORK_EXECUTABLE_NAME=$(defaults read “$FRAMEWORK/Info.plist” CFBundleExecutable)
FRAMEWORK_EXECUTABLE_PATH=“$FRAMEWORK/$FRAMEWORK_EXECUTABLE_NAME”
echo “Executable is $FRAMEWORK_EXECUTABLE_PATH”
EXTRACTED_ARCHS=()
for ARCH in $ARCHS
do
echo “Extracting $ARCH from $FRAMEWORK_EXECUTABLE_NAME”
lipo -extract “$ARCH” “$FRAMEWORK_EXECUTABLE_PATH” -o “$FRAMEWORK_EXECUTABLE_PATH-$ARCH”
EXTRACTED_ARCHS+=(“$FRAMEWORK_EXECUTABLE_PATH-$ARCH”)
done
echo “Merging extracted architectures: ${ARCHS}”
lipo -o “$FRAMEWORK_EXECUTABLE_PATH-merged” -create “${EXTRACTED_ARCHS[#]}”
rm “${EXTRACTED_ARCHS[#]}”
echo “Replacing original executable with thinned version”
rm “$FRAMEWORK_EXECUTABLE_PATH”
mv “$FRAMEWORK_EXECUTABLE_PATH-merged” “$FRAMEWORK_EXECUTABLE_PATH”
done
On my side this issue appeared when i change my computer and issue was caused by Apple Silicon processor. When i start to use m1 pro, i did not check the installation page i directly intalled flutter via Fvm. When i check the installation page i saw there are a few steps to install flutter on Apple Slicon. And these steps fixed the issue;
sudo softwareupdate --install-rosetta --agree-to-license
ref: https://docs.flutter.dev/get-started/install/macos

ninja output empty compdb content

When i tried to integrate Google Kythe system with my own Android source code.
And i found i need to generate compile_commands.json first.
So i run command prebuilts/build-tools/linux-x86/bin/ninja -f out/combined-$target.ninja -t compdb, however generate nothing.
$ prebuilts/build-tools/linux-x86/bin/ninja -f out/combined-venus.ninja -t compdb
[
]
And my version of ninja:
$ prebuilts/build-tools/linux-x86/bin/ninja --version
1.8.2.git
I also created a Helloworld project to do the samething, yet still nothing. Is it a known issue?
OK, it seems only latest ninja process could generate the json file.
so i download from github and compile ninja myself. now it works

Unity Parsing APK error [INSTALL_PARSE_FAILED_UNEXPECTED_EXCEPTION: Failed to parse /data/app/vmdl1662909328.tmp/base.apk: AndroidManifest.xml]

When I try to build and run the project in Unity these errors shows and don't build. How can I solve the problem? Help immediately,
-I tried reinstall JDK and SDK
-I tried other phones
-I tried to ask everywhere
Errors:
I fixed it!
I delete two videos(.mp4) in Plugins/Android/assets/,and assets size change to 5.7MB(original 13.4MB),now I can build APK with compression method=LZ4HC and install with no error.
so maybe the problem is that when unity build APK,the assets size has limit?

Yocto: oe_runmake failed, error in do_compile from bitbake image

I'm building yocto image and a newbie for this.
I'm having an error when I type bitbake piflo command (piflo is my image name) like shown figure below:
It says ERROR: batctl-2017.1-r0 do_compile: oe_runmake failed and also says pkg-config not found. from makefile.
I found some solutions from web and tried, but it gave me same error as figure above.
It was building OK but after getting new batctl and batman-adv it fails building.
Does anybody have an idea for this?
Please help me out here.
If needs more information or code, I will EDIT.
Thanks in advance.
Sounds like a broken package. First things first, try cleaning it and rebuilding
bitbake -c cleanall batctl
bitbake -c cleanall batman-adv
bitbake batman-adv
bitbake batctl
Also, do you actually need those packages? If not just remove them by adding to your local.conf
IMAGE_INSTALL_remove = " batctl batman-adv "
Yes, like you just found out, you need to add pkg-config to your recipe's DEPENDS.
In earlier OpenEmbedded (Yocto) it often worked out anyway, as some other recipe had pkg-config in its DEPENDS. However, from the Pyro release, each recipe gets it's own sysroot; thus, you have to explicitly add everything that the recipe needs to it's DEPENDS. This is done to improve determinism in the builds.

Three20 Build Error

I can successfully execute the command:
python Three20/src/scripts/ttmodule.py -p test320/Test320.xcodeproj Three20
and the project has a file information. But I can not build. I don't know why. Any ideas?
Images:
Just comment this code out. This is known issue.
More here :
https://github.com/facebook/three20/issues/802
and :
https://github.com/facebook/three20/pull/809