I've struggled integrating Unity and Android in Eclipse.
I was following [these steps.][1]
Importing the unity project as a library, compiler tells me there is no a file in my Android project: com.unity3d.player.unityplayerproxyactivity.jar
Error: The container 'Android Dependencies' references non existing library 'D:\Work\Unity Projects\Tutorials\UnityProjectLibaray\StagingArea\bin\com.unity3d.player.unityplayerproxyactivity.jar'
Help me. I would appreciate it.
Have you maybe considered using the Unity2Eclipse plugin in the Asset Store?
Related
I'm trying to integrate a Unity project into an already existing Android Studio project. I get this error when I try to run the application:
Program type already present: com.unity3d.player.BuildConfig
I had this issue when I had Unity Monetization 3.0.1 (for ads) imported along with the "Build in extension enabled" please refer to the pic.
To resolve the issue
-I disabled the "built-in Ads extension"
- delete the android and ios folders in the plugin folder and
- reimport the monetization package to make it work.
There is a conflict between the built in package and the one we download from the asset store. Hope this helps someone.
I had a similar issue. My project had a library module which had the same package name as the app module. This was creating the conflict. After I change the library name in the AndroidManifest, it compiled.
Check if you have imported two modules with same package name
usually it can happen if you have libraries that use different versions of a gradle dependency.
I had the same issue.
I solve the issue by removing unity ads package from package manager.
edit: In my case monetization plugin and package manager's Unity Ads extension was conflicting. hope it helps
I am building a android binding project on xamarin studio which builds successfully. However when i include the same in a test project (from reference), I am facing error [Target names SignAndroidPackage not found in the project] in the binding library project. I tried setting up signing keys but no luck.
Any pointers how i can resolve this issue?
Thanks in advance
When i try to import an existing project in android studio for development, I get the following error.
* Project NiuDrawingKit:D:\Android\Projects...ProjectName...\NiuDrawingKit\project.properties:
Library reference ....\Desktop\HoloColorPicker-master could not be found
Path is D:\Android\Projects...ProjectName...\NiuDrawingKit....\Desktop\HoloColorPicker-master which resolves to D:\Android\Projects...ProjectName...\Desktop\HoloColorPicker-master*
This project was developed long ago in eclipse. I also find that the particular lib "NiuDrawingKit" cant be found by android studio.
any support to resolve this issue?
Other than this lib, project also uses JakeWharton-ViewPagerIndicator and google-play-sevrvices_lib..which is found to be no issues.
I created a sample HelloWorld app on Android using Eclipse! It's not importing a java package. What could be wrong?
Try rebuilding your project. This link explains: http://izvornikod.com/Blog/tabid/82/EntryId/12/How-to-force-Eclipse-to-rebuild-generated-resource-class-R-in-Android-project.aspx
First you have to remove error from res folder its might be a reason nd then clean your project
2.Check you add android support v7 appcompat library in your project if not then first you have to add it in your project and also clear android support v7 appcompat library. if library having error then never reslove in your project.
may this info. help to you :)
Everybody!
I'm a newb in game development. And I'm following the tutorial in "Learning Libgdx Game Development" to create cross-platform 2D games. However, I'm using IntelliJ instead of Eclipse because IntelliJ seems like to help me out with my coding style.
My problem is: When I import a libgdx project to IntelliJ (using "gdx-setup"), everything works fine. Until I need an extension of libgdx called TexturePacker in "extensions/gdx-tools". I think I can add this .jar file as a normal library but it does not work.
Here is the errors I have got:
Error:(5, 44) Gradle: error: package com.badlogic.gdx.tools.texturepacker does not exist
I will appreciate your help. Thanks!
Since your libgdx project is now built with gradle you will have to add the tools extension as a gradle dependency of your desktop project:
compile "com.badlogicgames.gdx:gdx-tools:$gdxVersion"
otherwise gradle won't compile (..and find) it.
This is explained in more detail at the libgdx project page
BTW: While setting up your project with the gdx-setup jar you can check the "tools" checkbox and it will generate a project that already has the tools dependency in the build.gradle file.
You have to add .jar file to all project files(android/desktop/html and source).Also try to use this one instead:
import com.badlogic.gdx.tools.texturepacker.TexturePacker;