I have face with this error log when I try to get Build
stderr[
/Users/enes/WordeXtra/Temp/StagingArea/android-libraries/facebook-android-sdk-4.23.0/res/values/values.xml:131: error: Error retrieving parent for item: No resource found that matches the given name '#style/Theme.AppCompat.NoActionBar'.
/Users/enes/WordeXtra/Temp/StagingArea/android-libraries/facebook-android-sdk-4.23.0/res/values/values.xml:136: error: Error retrieving parent for item: No resource found that matches the given name '#style/Theme.AppCompat.Dialog'.
]
From your android-sdk/extras/android/m2repository/com/android/support folder, copy 'appcombat-vX' and 'support-v4' folders to Library folder of your project (Not to Assets folder, it is different).
I suppose the thing to do is to remove that old SDK and get the latest version from here: https://developers.facebook.com/docs/audience-network/download#unity
Current version is 7.10.1.
Related
Unknown error occurred while loading 'Library/Artifacts/91/919a792b1979b62f241964f8b62a0554'.
This error I get after download entities on unity
Two suggestions: download the latest version of the package; Try deleting the entire "Library" folder, after having dubbed it to another location for safety.
C:\Program Files\dotnet\sdk\6.0.101\Sdks\Microsoft.NET.Sdk.Razor\targets\Microsoft.NET.Sdk.Razor.StaticWebAssets.targets(442,5): error : Two assets found targeting the same path with incompatible asset kinds: [D:\Migration\XXXXXX\XXXX.App\XXXX.csproj]
C:\Program Files\dotnet\sdk\6.0.101\Sdks\Microsoft.NET.Sdk.Razor\targets\Microsoft.NET.Sdk.Razor.StaticWebAssets.targets(442,5): error : ‘D:\Migration\XXXXXX\XXXX.App\wwwroot\assets\images\AAA.png’ with kind ‘All’ [X:\Migration\XXXXXX\XXXX.App\XXXX.csproj]
C:\Program Files\dotnet\sdk\6.0.101\Sdks\Microsoft.NET.Sdk.Razor\targets\Microsoft.NET.Sdk.Razor.StaticWebAssets.targets(442,5): error : ‘X:\Migration\XXXXXX\XXXX.App\wwwroot\assets\images\AAA.png’ with kind ‘All’ [D:\Migration\XXXXXX\XXXX.App\XXXX.csproj]
C:\Program Files\dotnet\sdk\6.0.101\Sdks\Microsoft.NET.Sdk.Razor\targets\Microsoft.NET.Sdk.Razor.StaticWebAssets.targets(442,5): error : for path ‘assets/images/Cancel.png’ [D:\Migration\XXXXXX\XXXX.App\XXXX.csproj]
0 Warning(s)
1 Error(s)
Error occurs while building the Solution. Not sure why this error is happening in .NET 6, the same copy of wwwroot folder content to output directory works fine in .Netcore3.1. But giving error in .Net 6.
Did initial research on any other alterative for this problem. It only builds if content of wwwroot folder are deleted each time in the project directory location. hence works fine on the first time of clean workspace.
Background: basically need to copy the icons and images used in client to wwwroot folder and also copying this to output directory using
Sample mini project is in git https://github.com/Shruthi1984/StaticWebAssestscopyissue .
Similar error propped up in our project after upgrading to net6.0
Project had a .nuget package reference to said static asset(i.e bootstrap), and also files under wwwroot folder. The duplication made the project to throw error. We removed the reference to package. And that solved the problem.
I had the same problem after updating from .net5.0 to .net6.0. The error happened because I had this command in the project file:
<Content Include="$(ProjectDir)\wwwroot\**\*.*" CopyToPublishDirectory="PreserveNewest" />
After removing it I was finally able to build the project, because in .NET 6 the copying is automatically done and it will try to copy the files twice with this command
I have created an Android Unity plugin (.aar file) which provides some custom positioning data to my Unity game. In my Unity script, I use,
var x = customClass.CallStatic<float>("getHeadX");
In order to get some location data. This method is called per frame to get the updated data (polling method) which makes it inefficient. Instead, I decided to call a C# method in my Unity script from my java code (plugin side) when the updated data is ready. To do this, in my java plugin, I wrote,
import com.unity3d.player.UnityPlayer;
...
UnityPlayer.UnitySendMessage("Manager", // gameObject name
"PluginCallback", // this is a callback in C#
"Hello from android plugin"); // msg which is not needed actually
However, the compiler complained that the package com.unity3d.player.UnityPlayer does not exist. So I copied classes.jar file from
C:\Program Files
(x86)\Unity\Editor\Data\PlaybackEngines\AndroidPlayer\Variations\mono\Release\Classes
\classes.jar
into the 'libs' folder of my android plugin's project. I built it successfully and copied the generated .aar file (mylibrary-release.aar) into Assets\Plugins\Android folder of my Unity project.
When I build the Unity project (Using 'Internal' build system), it gives me this error:
IOException: Failed to Move File / Directory from
'Temp/StagingArea\android-libraries\mylibrary-release\classes.jar' to
'Temp/StagingArea\android-libraries\mylibrary-release\libs\classes.jar'.
UnityEditor.Android.PostProcessor.Tasks.ProcessAAR.Execute
...
This error happens because the classes.jar dependency has name conflict with classes.jar (made by unity out of my plugin). So I changed the dependency name to unity_classes.jar and this resolved the issue but now I'm getting a new error when building my unity application:
CommandInvokationFailure: Unable to convert classes into dex format.
C:/Program Files/Java/jdk1.8.0_102\bin\java.exe -Xmx2048M
Dcom.android.sdkmanager.toolsdir="C:/Users/kamran.shamloo/AppData/Local/Android/Sdk\tools"
-Dfile.encoding=UTF8 -jar "C:\Program Files (x86)\Unity\Editor\Data\PlaybackEngines\AndroidPlayer/Tools\sdktools.jar"
stderr[ Uncaught translation error:
java.lang.IllegalArgumentException: already added:
Lbitter/jnibridge/JNIBridge; Uncaught translation error:
java.lang.IllegalArgumentException: already added:
Lbitter/jnibridge/JNIBridge$a; Uncaught translation error:
java.lang.IllegalArgumentException: already added:
Lcom/unity3d/player/NativeLoader; Uncaught translation error:
java.lang.IllegalArgumentException: already added:
Lcom/unity3d/player/ReflectionHelper; Uncaught translation error:
java.lang.IllegalArgumentException: already added:
Lcom/unity3d/player/ReflectionHelper$1; Uncaught translation error:
java.lang.IllegalArgumentException: already added:
Lcom/unity3d/player/ReflectionHelper$a; Uncaught translation error:
java.lang.IllegalArgumentException: already added:
Lcom/unity3d/player/UnityPlayer; Uncaught translation error:
java.lang.IllegalArgumentException: already added:
Lcom/unity3d/player/UnityPlayer$1; Uncaught translation error:
java.lang.IllegalArgumentException: already added:
Lcom/unity3d/player/UnityPlayer$10;
...
The classes.jar (which you later renamed it to 'unity_classes.jar') gets automatically included into the built .apk by Unity, so you shouldn't include it yourself again (in your Android plugin), even under a different name.
In other words, first your android plugin "embeds" this .jar file inside itself. Then, when Unity adds your plugin into the game project, it also adds its own copy of that .jar file (it does that for all android projects). Consequently, Unity essentially ends up having 2 copies of the same .jar file in the project and complains by saying 'unable to convert classes into dex format'.
So although you have to use this library (.jar file) in your project but you should not bundle this library with your project. How to do that? If you're using Android studio, you can achieve this by marking the .jar file as a dependency with the provided scope.
To do this, you can:
1) Go to 'build.gradle' of your module and change this:
compile files('libs/jars/unity_classes.jar')
to this:
provided files('libs/jars/unity_classes.jar')
Or
2) you can right-click on the module (in Android pane) and choose Open Module Settings. Then go to Dependencies tab. Find the Unity module (which I renamed it to unity_classes.jar) and change its scope to Provided.
When I attempt to compile the Main.elm file (via Ctrl+F5) using Visual Studio Code, I receive the following error:
Error:
elm-make: c:\Users\Bizmonger\Documents\Visual: openFile: does not exist (No such file or directory)
Note:
I am trying to compile an Elm solution that I cloned from GitHub.
Here's the parent directory:
Here's the src directory with the elm files:
Why am I receiving this error?
The error message looks like it truncates the folder name after Visual, but I'm assuming you're in a folder called something like Visual Studio Projects. Try moving the project to a folder tree without a space in the name.
I'm trying to get ArcMenu for my application.
The code runs great by itself, but I don't know how to make it work with another project.
It doesn't look like an Android Library project...
When trying to use this project with my own, this is what I get in Eclipse's console:
res/layout/arc_menu.xml:4: error: No resource identifier found for attribute 'fromDegrees' in package 'com.capricorn'
res/layout/arc_menu.xml:4: error: No resource identifier found for attribute 'toDegrees' in package 'com.capricorn'
res/layout/ray_menu.xml:4: error: No resource identifier found for attribute 'childSize' in package 'com.capricorn'
res/layout/ray_menu.xml:4: error: No resource identifier found for attribute 'leftHolderWidth' in package 'com.capricorn'
EDIT
I forked ArcMenu and published it on Github.
Now a better recode of it appeared: https://github.com/siyamed/android-satellite-menu
I recommend you use that one.
it seems that on your XML you didn't properly define the namespace.
for example for all the android framework stuff is:
xmlns:android="http://schemas.android.com/apk/res/android"
I suggest checking on your examples what would be for the ArcLibrary.