I'm trying to deploy my project but I am facing some problems. When I try to build the APK on Android Studio I get this error:
Honestly I never had contact with .gwt files before and I donĀ“t know what they are. I searched on google about gwt but I did not understand very well what I read.
Here is my project hierarchy:
I remember that I had this file before but I think I deleted it by mistake. I also think this file was generated by LibGDX setup.
Anyway, my question is, how can I solve this problem or how can I make my own gwt.xml file for this project and why is it needed?
Thanks.
Related
I am attempting to create a JAR from IntelliJ using the build artifacts but when I do it is saying
Error: Invalid or corrupt jarfile
Im not sure what im doing wrong though?
Hard to tell from what you have posted. Intellij can be finicky at times especially with the Artifact jar build interface. There is a good tutorial on IntelliJ's website on how to set up the artifact. One area that may provide difficulty is pointing to the Main Class.
An issue I had in building a jar using the tool was selecting the Main Class. Ultimately I typed it in and it worked. Not sure if this is the advice that will solve your problem.
From the intellij website at: https://www.jetbrains.com/help/idea/creating-and-running-your-first-java-application.html
Note the image below.
Other potential issues could be that a dependency was corrupted, although doubtful.
Could also be the Manifest file is referencing a file that is causing the issue. Most Manifest files should be fairly simple and point to the main class. Last but not least email IntelliJ. They are good at responding and if the problem is one that intellij can solve, they will help. Unfortunately they only respond by email and sometimes can take up to a day.
I've been trying to follow the directions posted on the box-android-sdk github, however I have been highly unsuccessful. I've tried adding compile 'com.box:box-java-sdk:1.1.0' to my build.gradle file without any luck and have not been able to find a jar file to use.
I've also tried loading the box-content-sdk project into Android Studio but it comes back with an error stating the Gradle project sync failed and basic functionality will not work properly.
Has anybody been successful with creating a basic OAuth application for Box and if so can you please help me find the way?
I was able to get it to work by putting compile project (':box-content-sdk') in my build.gradle file.
Okay so Im starting work on android application development. Ive downloaded the newest sdk's. But there seems to be a problem. Whenever i create a project or save a project or edit a project a command prompt pops up
(aapt.exe)
Ive experienced some stuff with android development before and this didnt happen before. Is there a way i can put android development into "Silent" mode while working as it gets somewhat annyoing.
Thanks
AAPT is a tool that processes the ressources of your app:
The Android Asset Packaging Tool (aapt) takes your application resource files, such as the AndroidManifest.xml file and the XML files for your Activities, and compiles them. An R.java is also produced so you can reference your resources from your Java code.
So I think that you did some errors in your ressources or xml files. Eclipse has problems to detect and show these kind of errors. You should check your xml files.
There are also some links on StackOverflow:
link1 link2 link3
Hope that helps you.
So I have a project that works totally fine in one workspace on my machine. I push it to the repository so everyone else can work on it. I go to pull it down making sure all the changes are good. I import the project into a new workspace and using eclipse with autobuild on it produces no errors.
I go to the command line and run ant clean release on the project and right before it gets to run crunch on the assets the build fails with a mulitple dex files define error. Ive checked the project high and low and compared to the other copy of it in the original workspace but for what ever reason I cant get it to build. I erase the bin and gen folders and remove all the imports and basically leave just the project, run clean in eclipse, and still get a dex define error related to one of the lib projects classes. Ive tried to find where extra copies could be but I dont find anything.
googling around for the past few days hasnt helped as the normal solutions to such a problem havent worked for me. So what is the best way to figure out where the extra class definitions are coming from so I can get rid of them and fix the repository so I can use it correctly. I have a feeling its related to one of the files in the project that I should be excluding in my gitignore but Im not sure which that would be. Any help on the matter would be greatly appreciated cause this has eaten quite a bit of time of just messing around.
When you have more than one class with the same package name this error would raise.
One of the common source of this issue is when you have for example different version on the same library.
For example your add ActionbarSherlock which in 'libs forder has it's own support library and also your project has another version of support library in it's libs folder. In such a cases you should put one version of support library.jar to all different libraries that you using it.
I hope this could help you.
I didnt find the root of the problem but I figured out a fix. I moved all the support libraries to a new root folder completely away from the android project. Once I did that and cleaned everything I then ran ant clean release and the project built fine.
I'm new at Android world. Just learning. I want to study build this project. But it fails for all R.* members and so other reasons. After searching the web I found several blogs to fix generated R.java files. But I couldn't fix it. Maybe I don't much about Android and Java. Can anybody make a Eclipse project out of this example which is build properly? Thanks in advance!
Try cleaning your project. If that won't work check your xml files for any error. That's the most common reason for getting errors related to R.java*.