My Eclipse :
Version: Indigo Service Release 2
Build id: 20120216-1857
(Installed with Android ADT)
JDK 7
JRE 7
i recently learn Libgdx become grandle project, so it says to import project created by libgdx jar into Eclipse using Import->Grandle->....
But i cannot find it in "import".
After searching, it must added additionally plugin into eclipse
I try to update my Eclipse with Grandle by "install new software" and add url such as :
http://dist.springsource.com/snapshot/TOOLS/gradle/nightly (latest development snapshot)
http://dist.springsource.com/milestone/TOOLS/gradle (latest milestone build)
http://dist.springsource.com/release/TOOLS/gradle (latest release)
But it said error like :
An error occurred while collecting items to be installed
session context was:(profile=epp.package.jee, phase=org.eclipse.equinox.internal.p2.engine.phases.Collect, operand=, action=).
Problems downloading artifact: osgi.bundle,org.springsource.ide.eclipse.gradle.core,3.6.2.201410090835-RELEASE.
Error reading signed content:C:\Users\LUTHFA~1\AppData\Local\Temp\signatureFile6188792910440798483.jar
An error occurred while processing the signatures for the file: C:\Users\LUTHFA~1\AppData\Local\Temp\signatureFile6188792910440798483.jar
Problems downloading artifact: org.eclipse.update.feature,org.springsource.ide.eclipse.gradle.feature,3.6.2.201410090835-RELEASE.
Error reading signed content:C:\Users\LUTHFA~1\AppData\Local\Temp\signatureFile9055408208958627131.jar
An error occurred while processing the signatures for the file: C:\Users\LUTHFA~1\AppData\Local\Temp\signatureFile9055408208958627131.jar
Problems downloading artifact: osgi.bundle,org.springsource.ide.eclipse.gradle.toolingapi,3.6.2.201410090835-RELEASE.
Error reading signed content:C:\Users\LUTHFA~1\AppData\Local\Temp\signatureFile158162502031506472.jar
An error occurred while processing the signatures for the file: C:\Users\LUTHFA~1\AppData\Local\Temp\signatureFile158162502031506472.jar
Problems downloading artifact: osgi.bundle,org.springsource.ide.eclipse.gradle.ui,3.6.2.201410090835-RELEASE.
Error reading signed content:C:\Users\LUTHFA~1\AppData\Local\Temp\signatureFile8390443836635093074.jar
An error occurred while processing the signatures for the file: C:\Users\LUTHFA~1\AppData\Local\Temp\signatureFile8390443836635093074.jar
Problems downloading artifact: osgi.bundle,org.springsource.ide.eclipse.gradle.ui.taskview,3.6.2.201410090835-RELEASE.
Error reading signed content:C:\Users\LUTHFA~1\AppData\Local\Temp\signatureFile4151621413709401624.jar
An error occurred while processing the signatures for the file: C:\Users\LUTHFA~1\AppData\Local\Temp\signatureFile4151621413709401624.jar
I search more link and get :
https://www.eclipse.org/forums/index.php/t/243191/
that says i must add following lane to my eclipse.ini
-Djava.util.Arrays.useLegacyMergeSort=true
but looks like no result at all..
i also follow this :
https://github.com/spring-projects/eclipse-integration-gradle/
but cannot and still displayed error above.
another link :
http://estiloasertivo.blogspot.com/2013/03/tutorial-howto-install-and-configure.html
still not work.
i dont know what should i do anymore.
please help me or point me to fix those problems..
Thank you
Sorry if little messy in my explanation.
You should be able to open a command line from your main project and do a 'gradlew eclipse'. Once that runs, you should be able to import it in Eclipse as a normal existing project since Gradle will have generated the Eclipse-related project files that are needed for Eclipse to recognize and build a project.
Don't update Eclipse to grandle, Grandle is an separate compilation kit an this feature is added in Android Studio. So, better download Android Studio instead of updating eclipse
Eclipse recommended (4.4) 3.6.2.RELEASE for gradle plugin. Check this. you just need to drag install button from here to your eclipse and it will start downloading and installing.
Related
I want to build my xamarin android application with android 12 target framework on release mode. The build fails with the following
"Xamarin.Android.D8.targets(51,5): error MSB6006:"java.exe" exited
with code 1."
error.
Solutions I've tried so far are :
1 - Download the latest proguard version and replace the files inside /android-sdk/tools/proguard and create a proguard config file under android project making sure the file is saved with UTF-8.
2 - Make sure all the nuget packages are compatible by creating a blank sample project and adding each nuget from my original project and make sure it builds.
3 - Delete bin and object files and rebuild the project.
Doing some online research that I've found out that this particular version (Xamarin.Android.D8.targets(51,5)) of the 'java.exe exited with code 1' error type is mostly associated with either proguard or incompability however I am unable to locate the source of the problem, any kind of help is appreciated.
Here are some relevant information:
I do have the msbuild output level set to diagnostics but i don't think i can share the whole 260k line output file. Linking is set to "Sdk assemblies only".
SDK
JDK
Android Options
6 > Done executing task "WriteLinesToFile".
6 > Done building target"_CleanRecordFileWrites" in project "TestApp1.Android.csproj".
6 > Build FAILED.
6 >
"C:\Users\TestUser\source\Workspaces\TestApp1\TestApp1.Android\TestApp1.Android.csproj"
(Rebuild;BuiltProjectOutputGroup;BuiltProjectOutputGroupDependencies;DebugSymbolsProjectOutputGroup;DebugSymbolsProjectOutputGroupDependencies;DocumentationProjectOutputGroup;DocumentationProjectOutputGroupDependencies;SatelliteDllsProjectOutputGroup;SatelliteDllsProjectOutputGroupDependencies;SGenFilesOutputGroup;SGenFilesOutputGroupDependencies
target) (1) ->
6 > (_CompileToDalvik target) ->
6 > C:\Program Files (x86)\Microsoft Visual
Studio\2019\Community\MSBuild\Xamarin\Android\Xamarin.Android.D8.targets(51,5):
error MSB6006: "java.exe" exited with code 1.
11 Warning(s)
1 Error(s)
6>Time Elapsed 00:00:58.23
========== Rebuild All: 5 succeeded, 1 failed, 0 skipped ==========
There is no output from proguard inside the build output.
I've found the problem. The project was developed on android 11 and could build without a problem, the problem began when the target framework version was changed android 12, first the build error was:
'Xamarin.Android.Support.v4' is using '[assembly:
Java.Interop.JavaLibraryReferenceAttribute]' , which is no longer
supported. Use a newer version of this NuGet package or notify the
library author.
So we made sure that all nuget packages could run on android 12 than the build error changed to:
is also present at androidmanifest.xml:22:18-91 value (android.support.v4.app.corecomponentfactory)
this is was just one of the several java errors and all the errors were related to android.support.v4.app library. So during my first research I've found from the in xamarin community that some were able to solve their problem by adding the code :
tools:node="replace"
to their AndroidManifest.xml file under the <application> tag. So I did just that to see the results and the error than changed to:
"java.exe" exited with code 1
after going back to the first "android.support.v4.app" error and doing some more research about it online I've found that android studio users could solve these type of errors by setting the "useAndroidX = true" in their build.gradle file. Not having a build.gradle file in my project I've just decided delete the code I previously added to my AndroidManifest.xml and to add the "Xamarin.AndroidX.Core" Nuget package to my android project, after doing so the error changed to:
Could not find Jetbrains.Annotations
So after also adding the "Xamarin.Jetbrains.Annotations" nuget package to my project ,it now builds without an error.
I was working on a Xamarin Android project and I was just editing a class file that can be edited by a user and then I tried to build like I have built a thousand times before without errors but this time this error was thrown Xamarin.Android.Legacy.targets(265, 5): [XA0111] Unsupported version of AAPT2 found at path 'C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Xamarin\Android'. Open the project file in a text editor and remove the 'Aapt2ToolPath' MSBuild property or ensure it is set to a valid location.
I thought the error was with that particular project and tried to create a new Xamarin Android project but then the same issue keeps recurring both in Visual Studio 2022 and Rider. Please help me save my projects by helping me get rid of this error.
Before you decide to dismiss this post as "duplicate" without even reading it, understand that I have looked at a TON of posts related to this topic and I can't find a solution for my instance, including all of the ones that StackOverflow suggested. Most of the posts are for Android Studio instead of unity.
My error is given in Unity when trying to build to android, it crashes here.
CommandInvokationFailure: Gradle build failed.
C:\Program Files\Unity\Editor\Data\PlaybackEngines\AndroidPlayer/Tools\OpenJDK\Windows\bin\java.exe -classpath "C:\Program Files\Unity\Editor\Data\PlaybackEngines\AndroidPlayer\Tools\gradle\lib\gradle-launcher-4.6.jar" org.gradle.launcher.GradleMain "-Dorg.gradle.jvmargs=-Xmx4096m" "assembleDebug"
stderr[
D8: Program type already present: com.unity3d.ads.BuildConfig
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':transformDexArchiveWithExternalLibsDexMergerForDebug'.
I've tried changing stuff with a build.gradle file like a lot of posts suggest, but I can't get anything to work.
The error didn't exist in Unity 2018.2. I checked right before I updated, but the update is now throwing this issue.
Does anyone have any UNITY specific ideas what to do here? I've tried so many things and nobody's post has been able to help me yet.
Thanks for any help
You can open the PackageManage under Window in the menu bar and remove Advertisement or you can delete the com.unity.ads file of Library/PackageCache in the project directory to resolve this issue.
This error probably happens when you add a library which is not compatible with your compileSdkVersion.
In your case you can have libs that were not imported by default by unity (and now are)
or there can be a problem with the Build Tools version. (You can try updating them)
I had similar problem a few versions ago, but I don't remember how I fixed it.
I didn't have time to upgrade to unity 2018.3 yet. (So the tips are more like guesses, but it may help you solve the issue.)
My settings (Mac):
- Android Studio 2.3
- Unity 2019.1.5f1:
- Player Settings -> Other Settings –> Scripting Runtime Version = .Net 4
- Package Manager -> Advertisement: Uninstalled
- Preferences -> External Tools -> Android: checked Installed with Unity (everything)
My solution:
- delete GoogleMobileAds from project
- delete PlayServicesResolver from project
- delete Plugins from project
- Import Package -> Custom Package -> GoogleMobileAds.unitypackage (3.15.1 in my case)
Dex Errors generally occur when you have too many methods imported in a project, not because of a specific package. I assume upgrading to new version made you import new stuff to your project.
You need to enable ProGuard.
Cause: http://twinkfed.homedns.org/Android///tools/building/multidex.html
Fix: https://www.youtube.com/watch?v=va0FQNlBUX0
I was developing an android app (using Eclipse, not Studio) following some example, which makes use of Github/CircleImageView. Hence, I wanted to compile that first into a jar library.
So on my Linux machine I installed gradle and since its my first time with gradle, I followed the tutorial on gradle. So, in the root directory of the project ~/Downloads/CircleImageView-master/, I :
Run gradle wrapper. Got Build Success
Run ./gradlew build, gives the following error
CircleImageView.java:21: error: package com.nineoldandroids.animation does not exist
import com.nineoldandroids.animation.ObjectAnimator;
Though, I can see that there is one jar file in the project ~/Downloads/CircleImageView-master/circleimageview/libs/nineoldandroid-library-2.4.0.jar. Can anyone please help in resolving the issue. I am trying since past 10 hours and reached so far here after resolving all the issues, and stuck just at the last point.
I opened the jar in a package manager and the required classes are there, including ObjectAnimator.
I have a weird problem. I have installed windows 7 on my machine.
For android installation i have downloaded the latest android sdk, installed plugins, set the paths and all... as i have done it several times....
But when i create a new sample project and compile it it shows red cross on the project in Package explorer and i am not able to run the program.(I have compiled the project successfully and it is not the R.java file error... :-) )
In the Problem window it shows on error and that is
Type Error - generating final archive: java.lang.ArrayIndexOutOfBoundsException: 13 , Type: Android packaging problem.
Struggling with this for last one week and getting more and more frustrated.
I will very thankful if some solve my prol
Do a Project->Clean in Eclipse, see if that'll help out.
I have found this bug in my system to
and got puzzeled and ask question http://stackoverflow.com/questions/18045984/eclipse-pacakge-error-found-no-solutions
But At last i got the soulution
that worked for me
First change laguage from hindi(or some thing) to English
delete the debug key (Can be found on my doucument and folder named ".android")
and do
"eclipse.exe -clean" from command promp
this will generate a dubug keystore and project runs normally.