When trying to reference a .AAR java library binding we received the following error:
Unexpected error - Please file a bug report at http://bugzilla.xamarin.com. Reason: System.IO.DirectoryNotFoundException: Could not find a part of the path "\\####\####\Developer\Mobile Apps\Android\####.Android\Project Files\####.Xamarin.Android\obj\Release\__library_projects__\IntercomForXamarinAndroidBase\library_project_imports\res\drawable-xxhdpi\intercomsdk_chat_bubble_right_aligned_notail.9.png" (XA0000) (####.Xamarin.Android) monodroid
Turns out it was because the file path was too long.
Installed windows hotfix:
A file copy operation fails when files or folders have long paths in Windows Explorer
Related
I can't build my AAB because both in Unity and in Android Studio (when exporting the project) it fails with this error:
file 'root/res/drawable-xhdpi/ic_launcher.png' uses reserved file or directory name 'res'.
I searched up a lot and I can't find a valid solution to this issue, and I can't think of a way to avoid it since the files it refers to are added at the moment of building. Can anybody help me with this? Thanks a lot.
I am trying to integrate facebook to my android app. I followed facebook tutorial and imported facebook-android-3.14 into Eclipse. However, I got problems with some hidden files, I think. I did google a lot but still cannot figure it out.
It seems that I have to remove the hidden files like '._bolts.jar' from Android Private Library (libs folder) but I could not see it even when I turn on viewing hidden files on Mac. Any one have ideas? Thanks in advanced.
Archive for required library: '/Volumes/BOTH/Win/Working/facebook-android-sdk-3.14/AudienceNetwork/samples/AdUnitsSample/libs/._AudienceNetwork.jar' in project 'AdUnitsSample' cannot be read or is not a valid ZIP file AdUnitsSample Build path Build Path Problem
Archive for required library: '/Volumes/BOTH/Win/Working/facebook-android-sdk-3.14/AudienceNetwork/samples/NativeAdSample/libs/._AudienceNetwork.jar' in project 'NativeAdSample' cannot be read or is not a valid ZIP file NativeAdSample Build path Build Path Problem
Archive for required library: '/Volumes/BOTH/Win/Working/facebook-android-sdk-3.14/facebook/libs/._bolts.jar' in project 'FacebookSDK' cannot be read or is not a valid ZIP file FacebookSDK Build path Build Path Problem
I am trying to build an application using Android NDK. I have followed all the steps and everything works fine and the .so file is being made. But in eclipse when I try to clean the project I get the following error:
The file does not exist for the external tool named SWIG.
Does anyone have any idea what this might be?
Check Project->Properties->Builders, probably you have an external builder that is not working.
Hi I am developing small android application using eclipse tool. I am including two jar files into my project support version-4 and another is my library jar file. When I ran my application it run successfully but i tried to use it gives me some errors regarding no class def found error. So I do to project properties and there in java build path order and export I checked two jar files. After that i clean build my project and try to run my project. SO while running my project it gives me error. Run time error is as follow:
[2013-07-08 12:19:16 - Dex Loader] Unable to execute dex: Multiple dex files define Lcom/haarman/listviewanimations/ArrayAdapter;
[2013-07-08 12:19:16 - ListViewAnimationExample] Conversion to Dalvik format failed: Unable to execute dex: Multiple dex files define Lcom/haarman/listviewanimations/ArrayAdapter;
I check around this problem and according solution I delete my bin and gen folder and also tried again run but it gives me same error. How to solve this problem. Is it related to my project set up or its related to eclipse? Need Help.
Thank you.
This is a build path issue. Check that your bin folder is not part of your build path. Typically you get this when you have two of the same jars, but with different versions. Are you using external libraries like ActionBarSherlock? If the android-support-v4 jar you include is a different version than the one ActionBarSherlock uses you will get this error.
Unable to execute error solution link
Also check Make sure that the value of android:targetSdkVersion in AndroidManifest.xml matches target=android- in project.properties.
I am trying to make a Live Wallpaper for android that plays an .mp4 video located on the device in android-asset (with the example I am using, it actually copies the file to the sdcard at runtime/doesn't matter)
I found this example
And using this post I was able to get my eclipse set up with NDK and building the project.
When building in eclipse using the NDK plugin I get this error in my problems window:
Description Resource Path Location Type
make: *** [libs/armeabi/libavcodec.so] Error 1 GLWallpaperVideoDemo-master C/C++ Problem
make: *** Deleting file `libs/armeabi/libavcodec.so' GLWallpaperVideoDemo-master C/C++ Problem
I get the same error if I try to run ndk-build from command prompt.
I downloaded the project from the link above and then imported into eclipse. I added the lib GLWallpaperService to the build path, and made sure my NDK was setup. Knowing that the lib folder changed to libs I also tried moving the GLWallpaperService to the libs folder, which didn't help.
The project builds without NDK just fine in eclipse but obviously errors when trying to run the wallpaper because the native libraries were not built.
How can I resolve this error?
The package you get by git clone https://github.com/frankandrobot/GLWallpaperVideoDemo.git is Linux oriented. The file jni\ffmpeg-android\build\ffmpeg\armeabi\lib\libavcodec.so and many others are simply symbolic links to actual files.
To make this all work easily on Windows, I suggest to go to the jni\ffmpeg-android\build\ffmpeg\armeabi\lib folder, and run
del *.so
copy libavcodec.so.52.99.1 libavcodec.so
copy libavcore.so.0.16.0 libavcore.so
copy libavdevice.so.52.2.2 libavdevice.so
copy libavfilter.so.1.69.0 libavfilter.so
copy libavformat.so.52.88.0 libavformat.so
copy libavutil.so.50.34.0 libavutil.so
copy libswscale.so.0.12.0 libswscale.so
The issue might be because of a corrupted so file. Try to build the ffmpeg library again or find another version. Because I have a different error in eclipse when I try to compile the project:
C:/Android/android-ndk-r8c/toolchains/arm-linux-androideabi-4.6/prebuilt/windows/bin/arm-linux-androideabi-strip:./libs/armeabi/libavcodec.so: File format not recognized
And when I search for this error it seems like the error is because of a corrupted file: NDK prebuilt shared library file format not recognized
Or the library is not in a format that Android can use:
Error in linking C++ static library with android ndk(Error: file format not recognized)