I have READ_PHONE_STATE in my final manifest (apk build).
From what I understand, Unity combines all manifests. Some manifests can be seen, while some are inside .aar files (can be unzipped).
Is there a reasonably simple way to check to see which manifest is responsible for my READ_PHONE_STATE? Or do I have to unzip each .aar and then search each manifest.
↧
Search individual manifests for READ_PHONE_STATE
↧
Unity can not merge AndroidManifest files because it claims not to find a tag that appears to be set
I'm getting a strange error when trying to build an android version of our application
`Temp/StagingArea/android-libraries/CropLib/AndroidManifest.xml:6] Undefined 'name' attribute in /manifest/uses-permission`
Which is odd as when I look at the manifest file it has a name attribute on both the `uses-permission`. Here is the whole manifest file.
Any Ideas on what I'm missing? I'm using tools version 23 and unity 5.5.0f3.
↧
↧
Is it possible to publish Daydream app with Unity 5.5.4
So I have a working Daydream app build in 5.5.4, the only issue I have with it is there is no where to place or upload the foreground and background images for the VR icon for the Daydream Menu. I have tried updating the project to 5.6 and it will not build to the android device and just causes more issues. I have a completed Daydream app that is tested, I just need to add the VR icon and it will be done and publishable. Has anyone had experienced publishing Daydream pre 5.6? I would love to ask you some questions.
Also can a moderator please add Daydream to the possible topics?
↧
Unable to retrieve application from network while i try to connect with google play games services.
Hello everyone,
I recently developed an android game using Unity 5.5.4p4, now im triying to integrate achivements with [google play games plugin made from unity][1].
I already configured step by step the plugin as explained in the documentation. I also have an closed Alpha version of the game uploaded into my google play console just for testing, signed with the sha1 generated in the keystote from player settings in Unity.
So my problem comes now, when my app runs, it try to connect with google play services using this method:
public bool GoogleLogin(){
bool resp = false;
Social.localUser.Authenticate((bool success) => {
resp = success;
});
return resp;
}
In runtime, the modal of the connection appears but after a few seconds it closes and i get this two errors into my android device monitor:
10-15 16:30:21.346: E/GameAgent(10854): Unable to retrieve application xxxxxxxxxxxx from network
10-15 16:30:21.347: E/GameAgent(10854): Application xxxxxxxxxxxx is not associated with package com.mypackage.name. Check the application ID in your manifest.
I know unity detects other manifest files from other plugins and then merge it to generate a final one that is stored in projectFolder/Temp/StaginArea/AdroidManifest.xml.
Aplication xxxxxxxxxxxx is the ID asociated to my app in the google play console, and it match with the ID that i have in my final manifest in this metadata:
The package name that appears in the manifest is the same package i have asociated in google play console > games services > My game
I attach my manifest file with hidden app ID in case it could be useful:
If anyone could help me I would be very grateful, I have been stuck for several days and it's very frustrating.
Other threads i already check:
- [http://answers.unity3d.com/questions/1220475/unable-to-retrieve-application-from-network.html][2]
- [https://github.com/playgameservices/play-games-plugin-for-unity/issues/1292][3]
- [https://github.com/playgameservices/play-games-plugin-for-unity/issues/216][4]
- [https://stackoverflow.com/questions/25266854/application-id-is-not-associated-with-package-while-signing-in-google-play][5]
Things i already doublecheck:
- I have reinported the plugin from unity
- I deleted the AndroidMAnifest.xml to regenerate it
- I have made sure that the SHA1 key is the same as the google play console key and google API console Key
- I'm testing the alpha version with the correct google account that i previously activated in google play console.
- I create a brand new project in Google play console to configurate all the things again from cero.
[1]: https://github.com/playgameservices/play-games-plugin-for-unity
[2]: http://answers.unity3d.com/questions/1220475/unable-to-retrieve-application-from-network.html
[3]: https://github.com/playgameservices/play-games-plugin-for-unity/issues/1292
[4]: https://github.com/playgameservices/play-games-plugin-for-unity/issues/216
[5]: https://stackoverflow.com/questions/25266854/application-id-is-not-associated-with-package-while-signing-in-google-play
↧
android AndroidManifest.xml:5: error: String types not allowed - with 2017.2.03f
This is a new project with just UI button and no other assets or plugins
- jdk1.8.0_152.jdk
- sdk-tools-darwin-3859397
player settings - not changed
minimum api level -16
target API - highest available
scripting backend mono
Error msg
CommandInvokationFailure: Failed to re-package resources.
/Users/UNIKKUIDev/Library/Android/sdk/build-tools/27.0.1/aapt package --auto-add-overlay -v -f -m -J "gen" -M "AndroidManifest.xml" -S "res" -I "/Users/UNIKKUIDev/Library/Android/sdk/platforms/android-23/android.jar" -F bin/resources.ap_
stderr[
AndroidManifest.xml:5: error: Error: String types not allowed (at 'configChanges' with value 'mcc|mnc|locale|touchscreen|keyboard|keyboardHidden|navigation|orientation|screenLayout|uiMode|screenSize|smallestScreenSize|fontScale|layoutDirection|density').
]
Manifest file also linked as txt file
[1]: /storage/temp/106662-androidmanifest.txt
↧
↧
Avoid android permission prompt when returning to app after changing settings on device?
**Scenario:**
My app follows Android 6 permission guidelines, by suppressing Unity's permission requests at launch time. The user grants Location Permissions when needed.
In my manifest, I used:
If the user goes to setting and turns the permission off while the app runs in the background, and then returns to the app, the app attempts to relaunch. However, before showing the splash screen, the screen goes white, and several copies of the same Location Permission prompt overlap each other. The number of prompts equals the number of times the app has been launched on the device.
If permission are turn off while the app is not running, the app runs normal when restarted.
Video demonstration: https://youtu.be/iHiMC-H6n3o
↧
Manifest Version Code
I am changing the version code in the manifest but when i create the new apk it changes automatically, so i can't update my app in google play because it says that the version code is the same.
It seems like Unity doesn't use the manifest which is in the projects plugins folder.
What can I do to solve it?
↧
build VR samples for android
followed the [steps given by Google][1] to build the Unity VR samples to android. (Flyer scene). but I get the following error.![alt text][2] Has anyone got this error in similar work? Is it possible to build the Flyer scene to Google Cardboard?
[1]: https://developers.google.com/vr/develop/unity/get-started
[2]: /storage/temp/111360-capture.png
↧
ARCore is included even disabled, which forcing minSdkVersion to be 19.
I've already set the Minimum API Level to 16 (Android 4.1), and didn't tick ARCore support.
![minimum api level][1]
![xr settings][2]
However, when I build, it failed with:
uses-sdk:minSdkVersion 16 cannot be smaller than version 19 declared in
It's from a temporily made AndroidManifest.xml having such code:
Clearly it's from ARCore....
Why this manifest is included while I didn't enable ARCore? I don't want to change to API 19 unless very necessary. Any idea?
P.S. Unity 2017.3.1f1
[1]: /storage/temp/112249-screen-shot-2018-03-02-at-85018-pm.png
[2]: /storage/temp/112248-screen-shot-2018-03-02-at-84753-pm.png
↧
↧
Unable to merge Android manifests. (5.6.0p3)
I got passed the 'Unable to list target platforms' error by installing the 5.6.0p3 patch. The build goes further along, and I get stuck at 'Unable to merge Android manifests'.
Console Error
CommandInvokationFailure: Unable to merge android manifests. See the Console for more details.
C:/Program Files/Java/jdk1.8.0_131\bin\java.exe -Xmx2048M -Dcom.android.sdkmanager.toolsdir="C:/Users/Name/AppData/Local/Android/sdk\tools" -Dfile.encoding=UTF8 -jar "C:\Program Files\Unity\Editor\Data\PlaybackEngines\AndroidPlayer/Tools\sdktools.jar" -
stderr[
Error:Invalid command manifmerger
]
stdout[
]
exit code: 64
UnityEditor.Android.Command.Run (System.Diagnostics.ProcessStartInfo psi, UnityEditor.Android.WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg)
UnityEditor.Android.AndroidSDKTools.RunCommandInternal (System.String javaExe, System.String sdkToolsDir, System.String[] sdkToolCommand, Int32 memoryMB, System.String workingdir, UnityEditor.Android.WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg)
UnityEditor.Android.AndroidSDKTools.RunCommandSafe (System.String javaExe, System.String sdkToolsDir, System.String[] sdkToolCommand, Int32 memoryMB, System.String workingdir, UnityEditor.Android.WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg)
UnityEditor.HostView:OnGUI()
↧
Unable to merge manifest - building augmented to apk
SO CONFUSE WITH THIS ERRORS, I'M SO STRESS RIGHT NOW NEED HELP
CommandInvokationFailure: Unable to merge android manifests. See the Console for more details.
C:/Program Files/Java/jdk1.8.0_121\bin\java.exe -Xmx2048M -Dcom.android.sdkmanager.toolsdir="C:/Users/NicMic/AppData/Local/Android/sdk\tools" -Dfile.encoding=UTF8 -jar "C:\Program Files\Unity\Editor\Data\PlaybackEngines\AndroidPlayer/Tools\sdktools.jar" -
gingArea\AndroidManifest-main.xml:2, C:\Users\Public\Documents\Unity Projects\The COLOR\Temp\StagingArea\android-libraries\gvr_android_common\AndroidManifest.xml:2] Main manifest has but library uses minSdkVersion='16'
Error: [Temp\StagingArea\AndroidManifest-main.xml:2, C:\Users\Public\Documents\Unity Projects\The COLOR\Temp\StagingArea\android-libraries\unitygvractivity\AndroidManifest.xml:2] Main manifest has but library uses minSdkVersion='19'
]
stdout[
Warning: [Temp\StagingArea\AndroidManifest-main.xml:2, C:\Users\Public\Documents\Unity Projects\The COLOR\Temp\StagingArea\android-libraries\gvr-permissionsupport-release\AndroidManifest.xml:3] Main manifest has but library uses targetSdkVersion='24'
Warning: [Temp\StagingArea\AndroidManifest-main.xml:2, C:\Users\Public\Documents\Unity Projects\The COLOR\Temp\StagingArea\android-libraries\unitygvractivity\AndroidManifest.xml:2] Main manifest has but library uses targetSdkVersion='22'
]
UnityEditor.Android.Command.Run (System.Diagnostics.ProcessStartInfo psi, UnityEditor.Android.WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg)
UnityEditor.Android.AndroidSDKTools.RunCommandInternal (System.String javaExe, System.String sdkToolsDir, System.String[] sdkToolCommand, Int32 memoryMB, System.String workingdir, UnityEditor.Android.WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg)
UnityEditor.Android.AndroidSDKTools.RunCommandSafe (System.String javaExe, System.String sdkToolsDir, System.String[] sdkToolCommand, Int32 memoryMB, System.String workingdir, UnityEditor.Android.WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg)
UnityEditor.HostView:OnGUI()
stderr[
Error: [Temp\StagingArea\AndroidManifest-main.xml:2, C:\Users\Public\Documents\Unity Projects\The COLOR\Temp\StagingArea\android-libraries\gvr-permissionsupport-release\AndroidManifest.xml:3] Main manifest has but library uses minSdkVersion='19'
Error: [Temp\Sta
↧
Build error for gear vr app involving manifest
I am making a prototype for a simple game and right now the project is as simple as possible, a textured cube imported from blender with an orb inside it also imported from blender. I also imported the character package from the assets menu and added an FPSController to my scene. I have managed to build and run this on android (though the controls didn't work...) but when I try to build it for the gear vr following this guide: http://www.androidauthority.com/create-first-gear-vr-app-690512/ I get a build error
Here are screenshots of my build and player settings:
![alt text][1]
![alt text][2]
[1]: /storage/temp/94274-build-settings.png
[2]: /storage/temp/94275-player-settings.png
And here is the output from the editor.log file:
/Users/colinmctaggart/Dropbox/WORK/Unity/Gallery/Temp/StagingArea/AndroidManifest-main.xml:4:125-150 Error:
Attribute application@debuggable value=(true) from AndroidManifest-main.xml:4:125-150
is also present at AndroidManifest.xml:3:148-174 value=(false).
Suggestion: add 'tools:replace="android:debuggable"' to element at AndroidManifest-main.xml:4:3-12:17 to override.
/Users/colinmctaggart/Dropbox/WORK/Unity/Gallery/Temp/StagingArea/AndroidManifest-main.xml:4:16-57 Error:
Attribute application@theme value=(@style/UnityThemeSelector) from AndroidManifest-main.xml:4:16-57
is also present at AndroidManifest.xml:3:83-147 value=(@android:style/Theme.Black.NoTitleBar.Fullscreen).
Suggestion: add 'tools:replace="android:theme"' to element at AndroidManifest-main.xml:4:3-12:17 to override.
UnityEngine.DebugLogHandler:Internal_Log(LogType, String, Object)
UnityEngine.DebugLogHandler:LogFormat(LogType, Object, String, Object[])
UnityEngine.Logger:Log(LogType, Object)
UnityEngine.Debug:LogError(Object)
UnityEditor.Android.AndroidSDKTools:DetectErrorsAndWarnings(String, String)
UnityEditor.Android.AndroidSDKTools:RunCommandInternal(String, String, String[], Int32, String, WaitingForProcessToExit, String)
UnityEditor.Android.AndroidSDKTools:RunCommandSafe(String, String, String[], Int32, String, WaitingForProcessToExit, String)
UnityEditor.Android.AndroidSDKTools:RunCommand(String[], Int32, String, WaitingForProcessToExit, String)
UnityEditor.Android.AndroidSDKTools:RunCommand(String[], String, WaitingForProcessToExit, String)
UnityEditor.Android.AndroidSDKTools:RunCommand(String[], WaitingForProcessToExit, String)
UnityEditor.Android.AndroidSDKTools:MergeManifests(String, String, String[], WaitingForProcessToExit)
UnityEditor.Android.PostProcessor.Tasks.GenerateManifest:MergeManifests(PostProcessorContext, String, String)
UnityEditor.Android.PostProcessor.Tasks.GenerateManifest:Execute(PostProcessorContext)
UnityEditor.Android.PostProcessor.PostProcessRunner:RunAllTasks(PostProcessorContext)
UnityEditor.Android.PostProcessAndroidPlayer:PostProcess(BuildTarget, String, String, String, String, String, String, BuildOptions, RuntimeClassRegistry)
UnityEditor.Android.AndroidBuildPostprocessor:PostProcess(BuildPostProcessArgs)
UnityEditor.PostprocessBuildPlayer:Postprocess(BuildTargetGroup, BuildTarget, String, String, String, Int32, Int32, String, String, BuildOptions, RuntimeClassRegistry, BuildReport) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/PostprocessBuildPlayer.cs:186)
UnityEditor.BuildPipeline:BuildPlayerInternalNoCheck(String[], String, String, BuildTargetGroup, BuildTarget, BuildOptions, Boolean)
UnityEditor.BuildPlayerWindow:BuildPlayerWithDefaultSettings(Boolean, BuildOptions, Boolean) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPlayerWindow.cs:485)
UnityEditor.BuildPlayerWindow:BuildPlayerWithDefaultSettings(Boolean, BuildOptions) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPlayerWindow.cs:339)
UnityEditor.BuildPlayerWindow:GUIBuildButtons(IBuildWindowExtension, Boolean, Boolean, Boolean, BuildPlatform) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPlayerWindow.cs:1390)
UnityEditor.BuildPlayerWindow:ShowBuildTargetSettings() (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPlayerWindow.cs:1317)
UnityEditor.BuildPlayerWindow:OnGUI() (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPlayerWindow.cs:913)
System.Reflection.MonoMethod:InternalInvoke(Object, Object[], Exception&)
System.Reflection.MonoMethod:Invoke(Object, BindingFlags, Binder, Object[], CultureInfo) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Reflection/MonoMethod.cs:222)
System.Reflection.MethodBase:Invoke(Object, Object[]) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Reflection/MethodBase.cs:115)
UnityEditor.HostView:Invoke(String, Object) (at /Users/builduser/buildslave/unity/build/Editor/Mono/HostView.cs:262)
UnityEditor.HostView:Invoke(String) (at /Users/builduser/buildslave/unity/build/Editor/Mono/HostView.cs:255)
UnityEditor.HostView:OnGUI() (at /Users/builduser/buildslave/unity/build/Editor/Mono/HostView.cs:84)
(Filename: /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/PostprocessBuildPlayer.cs Line: 186)
AndroidSDKToolsException: Unable to merge android manifests. See the Console for more details.
at UnityEditor.Android.AndroidSDKTools.DetectErrorsAndWarnings (System.String logMessages, System.String errorMsg) [0x00000] in :0
at UnityEditor.Android.AndroidSDKTools.RunCommandInternal (System.String javaExe, System.String sdkToolsDir, System.String[] sdkToolCommand, Int32 memoryMB, System.String workingdir, UnityEditor.Android.WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg) [0x00000] in :0
at UnityEditor.Android.AndroidSDKTools.RunCommandSafe (System.String javaExe, System.String sdkToolsDir, System.String[] sdkToolCommand, Int32 memoryMB, System.String workingdir, UnityEditor.Android.WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg) [0x00000] in :0
at UnityEditor.Android.AndroidSDKTools.RunCommand (System.String[] sdkToolCommand, Int32 memoryMB, System.String workingdir, UnityEditor.Android.WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg) [0x00000] in :0
at UnityEditor.Android.AndroidSDKTools.RunCommand (System.String[] sdkToolCommand, System.String workingdir, UnityEditor.Android.WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg) [0x00000] in :0
at UnityEditor.Android.AndroidSDKTools.RunCommand (System.String[] sdkToolCommand, UnityEditor.Android.WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg) [0x00000] in :0
at UnityEditor.Android.AndroidSDKTools.MergeManifests (System.String target, System.String mainManifest, System.String[] libraryManifests, UnityEditor.Android.WaitingForProcessToExit waitingForProcessToExit) [0x00000] in :0
at UnityEditor.Android.PostProcessor.Tasks.GenerateManifest.MergeManifests (UnityEditor.Android.PostProcessor.PostProcessorContext context, System.String targetManifest, System.String mainManifest) [0x00000] in :0
at UnityEditor.Android.PostProcessor.Tasks.GenerateManifest.Execute (UnityEditor.Android.PostProcessor.PostProcessorContext context) [0x00000] in :0
at UnityEditor.Android.PostProcessor.PostProcessRunner.RunAllTasks (UnityEditor.Android.PostProcessor.PostProcessorContext context) [0x00000] in :0
UnityEditor.BuildPipeline:BuildPlayerInternalNoCheck(String[], String, String, BuildTargetGroup, BuildTarget, BuildOptions, Boolean)
UnityEditor.BuildPlayerWindow:BuildPlayerWithDefaultSettings(Boolean, BuildOptions, Boolean) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPlayerWindow.cs:485)
UnityEditor.BuildPlayerWindow:BuildPlayerWithDefaultSettings(Boolean, BuildOptions) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPlayerWindow.cs:339)
UnityEditor.BuildPlayerWindow:GUIBuildButtons(IBuildWindowExtension, Boolean, Boolean, Boolean, BuildPlatform) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPlayerWindow.cs:1390)
UnityEditor.BuildPlayerWindow:ShowBuildTargetSettings() (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPlayerWindow.cs:1317)
UnityEditor.BuildPlayerWindow:OnGUI() (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPlayerWindow.cs:913)
System.Reflection.MonoMethod:InternalInvoke(Object, Object[], Exception&)
System.Reflection.MonoMethod:Invoke(Object, BindingFlags, Binder, Object[], CultureInfo) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Reflection/MonoMethod.cs:222)
System.Reflection.MethodBase:Invoke(Object, Object[]) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Reflection/MethodBase.cs:115)
UnityEditor.HostView:Invoke(String, Object) (at /Users/builduser/buildslave/unity/build/Editor/Mono/HostView.cs:262)
UnityEditor.HostView:Invoke(String) (at /Users/builduser/buildslave/unity/build/Editor/Mono/HostView.cs:255)
UnityEditor.HostView:OnGUI() (at /Users/builduser/buildslave/unity/build/Editor/Mono/HostView.cs:84)
(Filename: Line: -1)
Unloading 14 Unused Serialized files (Serialized files now loaded: 0)
System memory in use before: 252.4 MB.
System memory in use after: 252.5 MB.
Unloading 10 unused Assets to reduce memory usage. Loaded Objects now: 2848.
Total: 11.396306 ms (FindLiveObjects: 0.314574 ms CreateObjectMapping: 0.056932 ms MarkObjects: 10.281447 ms DeleteObjects: 0.742021 ms)
Ignoring '/Applications/Unity/Unity.app/Contents/UnityExtensions/Unity/Advertisements/UnityEngine.Advertisements.dll' because we're compiling for Editor:Editor
Ignoring '/Applications/Unity/Unity.app/Contents/UnityExtensions/Unity/GUISystem/Standalone/UnityEngine.UI.dll' because we're compiling for Editor:Editor
Ignoring '/Applications/Unity/Unity.app/Contents/UnityExtensions/Unity/Networking/Standalone/UnityEngine.Networking.dll' because we're compiling for Editor:Editor
Ignoring '/Applications/Unity/Unity.app/Contents/UnityExtensions/Unity/TestRunner/standalone/nunit.framework.dll' because we're compiling for Editor:Editor
Ignoring '/Applications/Unity/Unity.app/Contents/UnityExtensions/Unity/UnityHoloLens/Runtime/UnityEngine.HoloLens.dll' because we're compiling for Editor:Editor
Ignoring '/Applications/Unity/Unity.app/Contents/UnityExtensions/Unity/UnityPurchasing/UnityEngine.Purchasing.dll' because we're compiling for Editor:Editor
Ignoring '/Applications/Unity/Unity.app/Contents/UnityExtensions/Unity/UnityVR/Runtime/UnityEngine.VR.dll' because we're compiling for Editor:Editor
Ignoring '/Applications/Unity/Unity.app/Contents/UnityExtensions/Unity/Advertisements/UnityEngine.Advertisements.dll' because we're compiling for Editor:Editor
Ignoring '/Applications/Unity/Unity.app/Contents/UnityExtensions/Unity/GUISystem/Standalone/UnityEngine.UI.dll' because we're compiling for Editor:Editor
Ignoring '/Applications/Unity/Unity.app/Contents/UnityExtensions/Unity/Networking/Standalone/UnityEngine.Networking.dll' because we're compiling for Editor:Editor
Ignoring '/Applications/Unity/Unity.app/Contents/UnityExtensions/Unity/TestRunner/standalone/nunit.framework.dll' because we're compiling for Editor:Editor
Ignoring '/Applications/Unity/Unity.app/Contents/UnityExtensions/Unity/UnityHoloLens/Runtime/UnityEngine.HoloLens.dll' because we're compiling for Editor:Editor
Ignoring '/Applications/Unity/Unity.app/Contents/UnityExtensions/Unity/UnityPurchasing/UnityEngine.Purchasing.dll' because we're compiling for Editor:Editor
Ignoring '/Applications/Unity/Unity.app/Contents/UnityExtensions/Unity/UnityVR/Runtime/UnityEngine.VR.dll' because we're compiling for Editor:Editor
- starting compile Library/ScriptAssemblies/Assembly-CSharp-firstpass.dll, for buildtarget 13
Load scene 'Temp/__Backupscenes/0.backup' time: 0.777798 ms
Unloading 4 Unused Serialized files (Serialized files now loaded: 0)
System memory in use before: 255.5 MB.
System memory in use after: 255.7 MB.
Unloading 0 unused Assets to reduce memory usage. Loaded Objects now: 2859.
Total: 13.617915 ms (FindLiveObjects: 0.417748 ms CreateObjectMapping: 0.026472 ms MarkObjects: 13.163993 ms DeleteObjects: 0.007972 ms)
*** Completed 'Build.Player.AndroidPlayer' in 20 seconds (20053 ms)
[00:00:00] Enlighten: Precompute started.
[00:00:00] Enlighten: Finished 1 Layout Systems job (0.00s execute, 0.00s integrate, 0.14s wallclock)
[PathTracer][LP] Issuing deduplication and tetrahedralization job. Combined: 80257199cfa681a16be5e09b3c2208f4, tetrahedralized probes: 00000000000000000000000000000000, non-tetrahedralized probes: 00000000000000000000000000000000, dependencies: 00000000000000000000000000000000
[00:00:00] Enlighten: Finished 1 Tetrahedralize Probes job (0.00s execute, 0.00s integrate, 0.05s wallclock)
[00:00:00] Enlighten: Precompute took 0.188991 seconds.
Enlighten scene contents: 0 geometries. 0 instances. 0 systems. 0 probe groups. 0 cube maps. Scene is up-to-date.
[00:00:00] Enlighten: Bake started.
[PathTracer][LP] Integrating deduplicated and tetrahedralized probes for hash 80257199cfa681a16be5e09b3c2208f4.
Launching external process: /Applications/Unity/Unity.app/Contents/Tools64/JobProcess
[00:00:00] Enlighten: Finished 1 Bake Runtime job (0.04s execute, 0.00s integrate, 0.06s wallclock)
[00:00:00] Enlighten: Bake took 0.064713 seconds.
[PathTracer] Lightmap reset.
[PathTracer][LP] Light probes reset.
[PathTracer] building lightmap data asset.
[00:00:01] Enlighten: Finished 1 Ambient Probes job (0.00s execute, 0.00s integrate, 0.05s wallclock)
[00:00:01] Enlighten: Finished 1 Reflection Probes job (0.00s execute, 0.00s integrate, 0.07s wallclock)
I understand that there are conflicting properties in android manifest files and unity doesn't know how to automatically resolve them but I don't know where these files are, the log doesn't give filenames or paths and I can't find any manifest files in the project.
Does anyone know how I can get this to build properly?
↧
AndroidManifest-main error when exporting project on another PC.
I have a problem when I try to export a project. It was done on my PC and I don't have issues with it, but when I try to export it while working from another PC, it gives me merging errors like this:
![alt text][1]
[1]: /storage/temp/95929-mergingerror.png
This only happens when I'm working on every PC that wasn't mine, and I don't know how can I solve it.
Thanks in advance, I will wait for an answer.
↧
↧
Unable to merge android manifests while integrating Rewarded Videos from Admob
Hi,
I was trying to integrate Rewarded Videos from Admob into my game. Tried building & running my game and this error popped up. I looked at a dozen solutions related to the manifest merging problem but none have worked so far
AndroidSDKToolsException: Unable to merge android manifests. See the Console for more details.
UnityEditor.Android.AndroidSDKTools.DetectErrorsAndWarnings (System.String logMessages, System.String errorMsg)
UnityEditor.Android.AndroidSDKTools.RunCommandInternal (System.String javaExe, System.String sdkToolsDir, System.String[] sdkToolCommand, Int32 memoryMB, System.String workingdir, UnityEditor.Android.WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg)
UnityEditor.Android.AndroidSDKTools.RunCommandSafe (System.String javaExe, System.String sdkToolsDir, System.String[] sdkToolCommand, Int32 memoryMB, System.String workingdir, UnityEditor.Android.WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg)
UnityEditor.Android.AndroidSDKTools.RunCommand (System.String[] sdkToolCommand, Int32 memoryMB, System.String workingdir, UnityEditor.Android.WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg)
UnityEditor.Android.AndroidSDKTools.RunCommand (System.String[] sdkToolCommand, System.String workingdir, UnityEditor.Android.WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg)
UnityEditor.Android.AndroidSDKTools.RunCommand (System.String[] sdkToolCommand, UnityEditor.Android.WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg)
UnityEditor.Android.AndroidSDKTools.MergeManifests (System.String target, System.String mainManifest, System.String[] libraryManifests, UnityEditor.Android.WaitingForProcessToExit waitingForProcessToExit)
UnityEditor.Android.PostProcessor.Tasks.GenerateManifest.MergeManifests (UnityEditor.Android.PostProcessor.PostProcessorContext context, System.String targetManifest, System.String mainManifest)
UnityEditor.Android.PostProcessor.Tasks.GenerateManifest.Execute (UnityEditor.Android.PostProcessor.PostProcessorContext context)
UnityEditor.Android.PostProcessor.PostProcessRunner.RunAllTasks (UnityEditor.Android.PostProcessor.PostProcessorContext context)
UnityEditor.HostView:OnGUI()
↧
Manifest Merge Problem
Hello, I faced the problem with manifest merging.
I use custom manifest.
And i got error when i am adding permission.C2D_MESSAGE permissions. Without it there no errors. How to understand the problem? I checked libraries and there no thoose permissions.
I'm using Unity 5.6.1f1
Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom.mylib.test/Manifest;
Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom.mylib.test/Manifest$permission;
Manifest Code:
Update: I just tried build via gradle and there no errors, seems internal builder is bugy
↧
after i imported admob to my android unity project and edited the code, error occured,after i imported admob to my android unity project, error occured
please note that it is running normally on the editor but when I tries to build it a pop up message appears:
FAILED TO REPACKAGE RESOURCES. SEE THE CONSOLE FOR DETAILS.
when I opened the console I found:
CommandInvokationFailure: Failed to re-package resources.
C:\Android\sdk1\build-tools\23.0.1\aapt.exe package --auto-add-overlay -v -f -m -J gen -M AndroidManifest.xml -S "res" -I "C:/Android/sdk1\platforms\android-23\android.jar" -F bin/resources.ap_ --extra-packages android.support.v7.appcompat:com.google.example.games.mainlibproj:com.google.android.gms.ads.impl:com.google.android.gms.ads:com.google.android.gms.auth.api:com.google.android.gms.auth:com.google.android.gms.base:com.google.android.gms.base:com.google.android.gms:com.google.android.gms:com.google.android.gms.drive:com.google.android.gms.games:com.google.android.gms.gass:com.google.android.gms.nearby:com.google.android.gms.tasks:com.google.android.gms.tasks:android.support.compat:android.support.coreui:android.support.coreutils:android.support.fragment:android.support.mediacompat:android.support.v4 -S "C:\Users\Abed Jabi\Documents\Swim\Temp\StagingArea\android-libraries\appcompat-v7-23.4.0\res" -S "C:\Users\Abed Jabi\Documents\Swim\Temp\StagingArea\android-libraries\play-services-ads-10.2.0\res" -S "C:\Users\Abed Jabi\Documents\Swim\Temp\StagingArea\android-libraries\play-services-ads-lite-10.2.0\res" -S "C:\Users\Abed Jabi\Documents\Swim\Temp\StagingArea\android-libraries\play-services-auth-11.0.0\res" -S "C:\Users\Abed Jabi\Documents\Swim\Temp\StagingArea\android-libraries\play-services-auth-base-11.0.0\res" -S "C:\Users\Abed Jabi\Documents\Swim\Temp\StagingArea\android-libraries\play-services-base-10.2.0\res" -S "C:\Users\Abed Jabi\Documents\Swim\Temp\StagingArea\android-libraries\play-services-base-11.0.0\res" -S "C:\Users\Abed Jabi\Documents\Swim\Temp\StagingArea\android-libraries\play-services-basement-10.2.0\res" -S "C:\Users\Abed Jabi\Documents\Swim\Temp\StagingArea\android-libraries\play-services-basement-11.0.0\res" -S "C:\Users\Abed Jabi\Documents\Swim\Temp\StagingArea\android-libraries\play-services-drive-11.0.0\res" -S "C:\Users\Abed Jabi\Documents\Swim\Temp\StagingArea\android-libraries\play-services-games-11.0.0\res" -S "C:\Users\Abed Jabi\Documents\Swim\Temp\StagingArea\android-libraries\play-services-gass-10.2.0\res" -S "C:\Users\Abed Jabi\Documents\Swim\Temp\StagingArea\android-libraries\play-services-nearby-11.0.0\res" -S "C:\Users\Abed Jabi\Documents\Swim\Temp\StagingArea\android-libraries\play-services-tasks-10.2.0\res" -S "C:\Users\Abed Jabi\Documents\Swim\Temp\StagingArea\android-libraries\play-services-tasks-11.0.0\res" -S "C:\Users\Abed Jabi\Documents\Swim\Temp\StagingArea\android-libraries\support-compat-25.2.0\res" -S "C:\Users\Abed Jabi\Documents\Swim\Temp\StagingArea\android-libraries\support-core-ui-25.2.0\res" -S "C:\Users\Abed Jabi\Documents\Swim\Temp\StagingArea\android-libraries\support-core-utils-25.2.0\res" -S "C:\Users\Abed Jabi\Documents\Swim\Temp\StagingArea\android-libraries\support-fragment-25.2.0\res" -S "C:\Users\Abed Jabi\Documents\Swim\Temp\StagingArea\android-libraries\support-media-compat-25.2.0\res" -S "C:\Users\Abed Jabi\Documents\Swim\Temp\StagingArea\android-libraries\support-v4-25.2.0\res"
stderr[
C:\Users\Abed Jabi\Documents\Swim\Temp\StagingArea\android-libraries\appcompat-v7-23.4.0\res\layout\abc_alert_dialog_button_bar_material.xml:18: note: removing attribute http://schemas.android.com/apk/res/android:layoutDirection from
C:\Users\Abed Jabi\Documents\Swim\Temp\StagingArea\android-libraries\appcompat-v7-23.4.0\res\layout\abc_alert_dialog_button_bar_material.xml: note: using v17 attributes; synthesizing resource com.abedjabi.Swish:layout/abc_alert_dialog_button_bar_material for configuration v17.
C:\Users\Abed Jabi\Documents\Swim\Temp\StagingArea\android-libraries\appcompat-v7-23.4.0\res\layout\abc_alert_dialog_material.xml:48: note: removing attribute http://schemas.android.com/apk/res/android:textAlignment from
C:\Users\Abed Jabi\Documents\Swim\Temp\StagingArea\android-libraries\appcompat-v7-23.4.0\res\layout\abc_alert_dialog_material.xml: note: using v17 attributes; synthesizing resource com.abedjabi.Swish:layout/abc_alert_dialog_material for configuration v17.
C:\Users\Abed Jabi\Documents\Swim\Temp\StagingArea\android-libraries\appcompat-v7-23.4.0\res\layout\abc_dialog_title_material.xml:29: note: removing attribute http://schemas.android.com/apk/res/android:textAlignment from
C:\Users\Abed Jabi\Documents\Swim\Temp\StagingArea\android-libraries\appcompat-v7-23.4.0\res\layout\abc_dialog_title_material.xml: note: using v17 attributes; synthesizing resource com.abedjabi.Swish:layout/abc_dialog_title_material for configuration v17.
C:\Users\Abed Jabi\Documents\Swim\Temp\StagingArea\android-libraries\appcompat-v7-23.4.0\res\layout\abc_screen_toolbar.xml:27: note: removing attribute http://schemas.android.com/apk/res/android:touchscreenBlocksFocus from
C:\Users\Abed Jabi\Documents\Swim\Temp\StagingArea\android-libraries\appcompat-v7-23.4.0\res\layout\abc_screen_toolbar.xml: note: using v21 attributes; synthesizing resource com.abedjabi.Swish:layout/abc_screen_toolbar for configuration v21.
C:\Users\Abed Jabi\Documents\Swim\Temp\StagingArea\android-libraries\appcompat-v7-23.4.0\res\layout\abc_search_view.xml:47: note: removing attribute http://schemas.android.com/apk/res/android:layoutDirection from
C:\Users\Abed Jabi\Documents\Swim\Temp\StagingArea\android-libraries\appcompat-v7-23.4.0\res\layout\abc_search_view.xml: note: using v17 attributes; synthesizing resource com.abedjabi.Swish:layout/abc_search_view for configuration v17.
C:\Users\Abed Jabi\Documents\Swim\Temp\StagingArea\android-libraries\appcompat-v7-23.4.0\res\layout\notification_template_big_media.xml:42: note: removing attribute http://schemas.android.com/apk/res/android:layoutDirection from
C:\Users\Abed Jabi\Documents\Swim\Temp\StagingArea\android-libraries\appcompat-v7-23.4.0\res\layout\notification_template_big_media.xml:34: note: removing attribute http://schemas.android.com/apk/res/android:layout_marginStart from
C:\Users\Abed Jabi\Documents\Swim\Temp\StagingArea\android-libraries\appcompat-v7-23.4.0\res\layout\notification_template_big_media.xml:34: note: removing attribute http://schemas.android.com/apk/res/android:layout_toStartOf from
C:\Users\Abed Jabi\Documents\Swim\Temp\StagingArea\android-libraries\appcompat-v7-23.4.0\res\layout\notification_template_big_media.xml: note: using v17 attributes; synthesizing resource com.abedjabi.Swish:layout/notification_template_big_media for configuration v17.
C:\Users\Abed Jabi\Documents\Swim\Temp\StagingArea\android-libraries\appcompat-v7-23.4.0\res\layout\notification_template_big_media_narrow.xml:60: note: removing attribute http://schemas.android.com/apk/res/android:layout_toEndOf from
C:\Users\Abed Jabi\Documents\Swim\Temp\StagingArea\android-libraries\appcompat-v7-23.4.0\res\layout\notification_template_big_media_narrow.xml:46: note: removing attribute http://schemas.android.com/apk/res/android:layout_toEndOf from
C:\Users\Abed Jabi\Documents\Swim\Temp\StagingArea\android-libraries\appcompat-v7-23.4.0\res\layout\notification_template_big_media_narrow.xml:46: note: removing attribute http://schemas.android.com/apk/res/android:layoutDirection from
C:\Users\Abed Jabi\Documents\Swim\Temp\StagingArea\android-libraries\appcompat-v7-23.4.0\res\layout\notification_template_big_media_narrow.xml:38: note: removing attribute http://schemas.android.com/apk/res/android:layout_marginStart from
C:\Users\Abed Jabi\Documents\Swim\Temp\StagingArea\android-libraries\appcompat-v7-23.4.0\res\layout\notification_template_big_media_narrow.xml:38: note: removing attribute http://schemas.android.com/apk/res/android:layout_toStartOf from
C:\Users\Abed Jabi\Documents\Swim\Temp\StagingArea\android-libraries\appcompat-v7-23.4.0\res\layout\notification_template_big_media_narrow.xml:30: note: removing attribute http://schemas.android.com/apk/res/android:layout_alignParentEnd from
C:\Users\Abed Jabi\Documents\Swim\Temp\StagingArea\android-libraries\appcompat-v7-23.4.0\res\layout\notification_template_big_media_narrow.xml: note: using v17 attributes; synthesizing resource com.abedjabi.Swish:layout/notification_template_big_media_narrow for configuration v17.
C:\Users\Abed Jabi\Documents\Swim\Temp\StagingArea\android-libraries\appcompat-v7-23.4.0\res\layout\notification_template_lines.xml:18: note: removing attribute http://schemas.android.com/apk/res/android:paddingEnd from
C:\Users\Abed Jabi\Documents\Swim\Temp\StagingArea\android-libraries\appcompat-v7-23.4.0\res\layout\notification_template_lines.xml:77: note: removing attribute http://schemas.android.com/apk/res/android:layout_marginStart from
C:\Users\Abed Jabi\Documents\Swim\Temp\StagingArea\android-libraries\appcompat-v7-23.4.0\res\layout\notification_template_lines.xml:96: note: removing attribute http://schemas.android.com/apk/res/android:paddingStart from
C:\Users\Abed Jabi\Documents\Swim\Temp\StagingArea\android-libraries\appcompat-v7-23.4.0\res\layout\notification_template_lines.xml:64: note: removing attribute http://schemas.android.com/apk/res/android:layout_marginStart from
C:\Users\Abed Jabi\Documents\Swim\Temp\StagingArea\android-libraries\appcompat-v7-23.4.0\res\layout\notification_template_lines.xml:27: note: removing attribute http://schemas.android.com/apk/res/android:layout_marginStart from
C:\Users\Abed Jabi\Documents\Swim\Temp\StagingArea\android-libraries\appcompat-v7-23.4.0\res\layout\notification_template_lines.xml: note: using v17 attributes; synthesizing resource com.abedjabi.Swish:layout/notification_template_lines for configuration v17.
C:\Users\Abed Jabi\Documents\Swim\Temp\StagingArea\android-libraries\appcompat-v7-23.4.0\res\layout\notification_template_media.xml:43: note: removing attribute http://schemas.android.com/apk/res/android:layout_marginEnd from
C:\Users\Abed Jabi\Documents\Swim\Temp\StagingArea\android-libraries\appcompat-v7-23.4.0\res\layout\notification_template_media.xml:33: note: removing attribute http://schemas.android.com/apk/res/android:layoutDirection from
C:\Users\Abed Jabi\Documents\Swim\Temp\StagingArea\android-libraries\appcompat-v7-23.4.0\res\layout\notification_template_media.xml: note: using v17 attributes; synthesizing resource com.abedjabi.Swish:layout/notification_template_media for configuration v17.
C:\Users\Abed Jabi\Documents\Swim\Temp\StagingArea\android-libraries\appcompat-v7-23.4.0\res\layout\notification_template_part_chronometer.xml:18: note: removing attribute http://schemas.android.com/apk/res/android:paddingStart from
C:\Users\Abed Jabi\Documents\Swim\Temp\StagingArea\android-libraries\appcompat-v7-23.4.0\res\layout\notification_template_part_chronometer.xml: note: using v17 attributes; synthesizing resource com.abedjabi.Swish:layout/notification_template_part_chronometer for configuration v17.
C:\Users\Abed Jabi\Documents\Swim\Temp\StagingArea\android-libraries\appcompat-v7-23.4.0\res\layout\notification_template_part_time.xml:18: note: removing attribute http://schemas.android.com/apk/res/android:paddingStart from
C:\Users\Abed Jabi\Documents\Swim\Temp\StagingArea\android-libraries\appcompat-v7-23.4.0\res\layout\notification_template_part_time.xml: note: using v17 attributes; synthesizing resource com.abedjabi.Swish:layout/notification_template_part_time for configuration v17.
C:\Users\Abed Jabi\Documents\Swim\Temp\StagingArea\android-libraries\appcompat-v7-23.4.0\res\layout\select_dialog_multichoice_material.xml:18: note: removing attribute http://schemas.android.com/apk/res/android:paddingStart from
C:\Users\Abed Jabi\Documents\Swim\Temp\StagingArea\android-libraries\appcompat-v7-23.4.0\res\layout\select_dialog_multichoice_material.xml:18: note: removing attribute http://schemas.android.com/apk/res/android:paddingEnd from
C:\Users\Abed Jabi\Documents\Swim\Temp\StagingArea\android-libraries\appcompat-v7-23.4.0\res\layout\select_dialog_multichoice_material.xml: note: using v17 attributes; synthesizing resource com.abedjabi.Swish:layout/select_dialog_multichoice_material for configuration v17.
C:\Users\Abed Jabi\Documents\Swim\Temp\StagingArea\android-libraries\appcompat-v7-23.4.0\res\layout\select_dialog_singlechoice_material.xml:18: note: removing attribute http://schemas.android.com/apk/res/android:paddingStart from
C:\Users\Abed Jabi\Documents\Swim\Temp\StagingArea\android-libraries\appcompat-v7-23.4.0\res\layout\select_dialog_singlechoice_material.xml:18: note: removing attribute http://schemas.android.com/apk/res/android:paddingEnd from
C:\Users\Abed Jabi\Documents\Swim\Temp\StagingArea\android-libraries\appcompat-v7-23.4.0\res\layout\select_dialog_singlechoice_material.xml: note: using v17 attributes; synthesizing resource com.abedjabi.Swish:layout/select_dialog_singlechoice_material for configuration v17.
C:\Users\Abed Jabi\Documents\Swim\Temp\StagingArea\android-libraries\appcompat-v7-23.4.0\res\drawable\abc_ratingbar_indicator_material.xml:23: note: removing attribute http://schemas.android.com/apk/res/android:tileModeX from
C:\Users\Abed Jabi\Documents\Swim\Temp\StagingArea\android-libraries\appcompat-v7-23.4.0\res\drawable\abc_ratingbar_indicator_material.xml: note: using v21 attributes; synthesizing resource com.abedjabi.Swish:drawable/abc_ratingbar_indicator_material for configuration v21.
C:\Users\Abed Jabi\Documents\Swim\Temp\StagingArea\android-libraries\appcompat-v7-23.4.0\res\drawable\abc_ratingbar_small_material.xml:23: note: removing attribute http://schemas.android.com/apk/res/android:tileModeX from
C:\Users\Abed Jabi\Documents\Swim\Temp\StagingArea\android-libraries\appcompat-v7-23.4.0\res\drawable\abc_ratingbar_small_material.xml: note: using v21 attributes; synthesizing resource com.abedjabi.Swish:drawable/abc_ratingbar_small_material for configuration v21.
C:\Users\Abed Jabi\Documents\Swim\Temp\StagingArea\android-libraries\play-services-base-10.2.0\res\values\values.xml:33: error: Attribute "imageAspectRatioAdjust" has already been defined
C:\Users\Abed Jabi\Documents\Swim\Temp\StagingArea\android-libraries\play-services-base-10.2.0\res\values\values.xml:42: error: Attribute "imageAspectRatio" has already been defined
C:\Users\Abed Jabi\Documents\Swim\Temp\StagingArea\android-libraries\play-services-base-10.2.0\res\values\values.xml:44: error: Attribute "circleCrop" has already been defined
C:\Users\Abed Jabi\Documents\Swim\Temp\StagingArea\android-libraries\play-services-base-10.2.0\res\values\values.xml:46: error: Attribute "buttonSize" has already been defined
C:\Users\Abed Jabi\Documents\Swim\Temp\StagingArea\android-libraries\play-services-base-10.2.0\res\values\values.xml:54: error: Attribute "colorScheme" has already been defined
C:\Users\Abed Jabi\Documents\Swim\Temp\StagingArea\android-libraries\play-services-base-10.2.0\res\values\values.xml:63: error: Attribute "scopeUris" has already been defined
]
stdout[
Configurations:
(default)
Files:
AndroidManifest.xml
Src: () AndroidManifest.xml
Resource Dirs:
Including resources from package: C:\Android\sdk1\platforms\android-23\android.jar
applyFileOverlay for drawable
trying overlaySet Key=common_full_open_on_phone.png
trying overlaySet Key=common_google_signin_btn_icon_dark.xml
trying overlaySet Key=common_google_signin_btn_icon_dark_focused.xml
trying overlaySet Key=common_google_signin_btn_icon_dark_normal.xml
trying overlaySet Key=common_google_signin_btn_icon_dark_normal_background.9.png
trying overlaySet Key=common_google_signin_btn_icon_disabled.xml
trying overlaySet Key=common_google_signin_btn_icon_light.xml
trying overlaySet Key=common_google_signin_btn_icon_light_focused.xml
trying overlaySet Key=common_google_signin_btn_icon_light_normal.xml
trying overlaySet Key=common_google_signin_btn_icon_light_normal_background.9.png
trying overlaySet Key=common_google_signin_btn_text_dark.xml
trying overlaySet Key=common_google_signin_btn_text_dark_focused.xml
trying overlaySet Key=common_google_s
what should I do,
↧
Screenshot functionality Android
I am using the script below in an Android project to take a screenshot. In the Editor it works perfectly, but when I push it to an Android device it has an issue. When you first press the button, it does nothing but press it again and it works as intended.
I'm thinking this is something to do with the permission perhaps. I do have "android.permission.WRITE_EXTERNAL_STORAGE" in my AndroidManifest.
Does anyone now whats causing this?
using UnityEngine;
using UnityEngine.UI;
using System.Collections;
using System.IO;
public class ScreenshotAVR : MonoBehaviour {
public bool hideGUI = false;
public Text console;
public CanvasGroup ui;
public CanvasGroup ui2;
public CanvasGroup uiTip;
public Image screenshot;
void Start(){
screenshot.enabled = false;
console.enabled = false;
}
void OnEnable ()
{
// call backs
ScreenshotManager.OnScreenshotTaken += ScreenshotTaken;
ScreenshotManager.OnScreenshotSaved += ScreenshotSaved;
}
void OnDisable ()
{
ScreenshotManager.OnScreenshotTaken -= ScreenshotTaken;
ScreenshotManager.OnScreenshotSaved -= ScreenshotSaved;
}
public void OnSaveScreenshotPress()
{
ScreenshotManager.SaveScreenshot("MyScreenshot", "MyApp", "jpeg");
if(!hideGUI)
ui.alpha = 0f;
ui2.alpha = 0f;
uiTip.alpha = 0f;
screenshot.enabled = true;
screenshot.GetComponent().Play ();
}
void ScreenshotTaken(Texture2D image)
{
screenshot.sprite = Sprite.Create(image, new Rect(0, 0, image.width, image.height), new Vector2(.5f, .5f));
screenshot.color = Color.white;
console.enabled = true;
ui.alpha = 1f;
ui2.alpha = 1f;
uiTip.alpha = 1f;
StartCoroutine ("Fade");
}
void ScreenshotSaved(string path){
}
IEnumerator Fade(){
yield return new WaitForSeconds (2);
screenshot.enabled = false;
console.enabled = false;
}
}
↧
↧
Unity 5.6.2.1f Android Build Error
Hi,
I am using Unity for Windows and I am getting the following 2 errors.
----------
[Temp\StagingArea\AndroidManifest-main.xml:58, C:\Users\Danish Sinha\Documents\turny-road\Temp\StagingArea\android-libraries\facebook-android-sdk-4.23.0\AndroidManifest.xml:6] Trying to merge incompatible /manifest/application/activity[@name=com.facebook.FacebookActivity] element:
UnityEditor.HostView:OnGUI()
----------
CommandInvokationFailure: Unable to merge android manifests. See the Console for more details.
C:/Program Files/Java/jdk1.8.0_121\bin\java.exe -Xmx2048M -Dcom.android.sdkmanager.toolsdir="C:\Users\Danish Sinha\AppData\Local\Android\Sdk\tools" -Dfile.encoding=UTF8 -jar "C:\Program Files\Unity\Editor\Data\PlaybackEngines\AndroidPlayer/Tools\sdktools.jar" -
stderr[
Error: [Temp\StagingArea\AndroidManifest-main.xml:58, C:\Users\Danish Sinha\Documents\turny-road\Temp\StagingArea\android-libraries\facebook-android-sdk-4.23.0\AndroidManifest.xml:6] Trying to merge incompatible /manifest/application/activity[@name=com.facebook.FacebookActivity] element:
]
stdout[
[Temp\StagingArea\AndroidManifest-main.xml:61, C:\Users\Danish Sinha\Documents\turny-road\Temp\StagingArea\android-libraries\play-services-ads-lite\AndroidManifest.xml:10] Skipping identical /manifest/application/activity[@name=com.google.android.gms.ads.AdActivity] element.
[Temp\StagingArea\AndroidManifest-main.xml:7, C:\Users\Danish Sinha\Documents\turny-road\Temp\StagingArea\android-libraries\play-services-basement\AndroidManifest.xml:5] Skipping identical /manifest/application/meta-data[@name=com.google.android.gms.version] element.
]
exit code: 1
UnityEditor.Android.Command.Run (System.Diagnostics.ProcessStartInfo psi, UnityEditor.Android.WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg)
UnityEditor.Android.AndroidSDKTools.RunCommandInternal (System.String javaExe, System.String sdkToolsDir, System.String[] sdkToolCommand, Int32 memoryMB, System.String workingdir, UnityEditor.Android.WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg)
UnityEditor.Android.AndroidSDKTools.RunCommandSafe (System.String javaExe, System.String sdkToolsDir, System.String[] sdkToolCommand, Int32 memoryMB, System.String workingdir, UnityEditor.Android.WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg)
UnityEditor.HostView:OnGUI()
↧
White screen before Splash screen change to black
Hello everybody, When I launch my game on android white screen shows for second what is annoying. How can I change this white screen to black? I was searching and I found that I can probably change it when i create AndroidManifest.xml and add there
"item name="android:windowBackground">@null/item" but when I tried it I got errors that unity can't merge AndroidManifest so I renamed my AndroidManifest and I didn't have no errors but nothing changed. Am i on right way or what should I do? I have these xml files in Assets>Plugins>Android
[link text][1] [link text][2]
[1]: /storage/temp/97575-backgroundstyle.txt
[2]: /storage/temp/97574-manifest.txt
↧
Unable to merge Android Manifests
Hello, I have an Android project that I develop on Windows machine but the builds are done on Mac machine where it has the license of Unity Pro. Everything was working fine for a couple of years until my boss had to replace the Mac with a newer one because it got old and heavy. Now the same project that was building just fine on the old Mac is not building on the new Mac that has the same Unity version 5.6.2
I get this error when building:
/Users/LGUnity/Desktop/Joseph Challenge Dragon/eSportsGalaxy/Temp/StagingArea/AndroidManifest-main.xml:6:83-109 Error:
Attribute application@debuggable value=(false) from AndroidManifest-main.xml:6:83-109
is also present at AndroidManifest.xml:5:83-108 value=(true).
Suggestion: add 'tools:replace="android:debuggable"' to element at AndroidManifest-main.xml:6:3-36:17 to override.
UnityEditor.HostView:OnGUI()
↧