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.
Related
So I recently started an android project on android studio and I wanted to use something from github in my project. I watched countless videos but still do not understand. So this is the loading animation I want to use: https://github.com/ybq/Android-SpinKit. In the tutorial, the person is simply copy pasting the Gradle dependency and this : maven{ url"https://jitpack.io"} in the build.gradle scripts. When I further proceed in my XML file, it is not recognizing when I type out Spinkit, whereas in the video it is. When I go to the class to type in the progress bar code, it is giving me errors that it can't recognize the word ProgressBar. I am very lost so any guidance can help? Thanks for being patient:)
build.gradle here is where I am typing the maven code thing
build.gradle, here is where I am typing the implementation code copy pasted from github
this is the XML file where I believe is the issue: the line starting with
here is the java class where I am getting the errors
I understand that I am a very inexperienced developer but I just need a little guidance on this issue
When you click on that github link, you can find a button that says "Clone or download", click there and download the zip file to the code.
Unzip it, drag it to the desktop folder for example.
Open AndroidStudio, File, Open, then choose that file.
You should sync your project so it can recognize your changes in gradle.
Just above your code it's showing you a message asking you to sync project first.
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.
I'm using eclipse ADT (most recent version) to develop some android apps. I've followed the getting started tutorial at the dev.android.com and it worked just fine.
But when i tried to create another project with the same targets and sdk's, i've got nothing but errors:
Some errors and my sdk's:
That's the same sdk's i used before these errors started showing up.
What can be causing this?
EDIT: my project won't generate the R.java file
You might need to add a support library to your new project.
Check this link for downloading the support libraries -
http://developer.android.com/tools/support-library/setup.html#download
Please notice that you need to import them into your eclipse and then include one (preferably the newest, not sure about this) in your project.
EDIT:
Before downloading the support libraries you should first check if you have them already.
Try this, right click project folder in the eclipse package explorer, Properties>Android>Library>Add>select a library if you have one.
There might be an invalid library included in your project already, if that happens then you will see it in the Library>Add> menu, remove it and add a new one.
You might have clean your project ........
if yes.....you must check whether R.java file is present in **Project(your project)->gen->package name->R.java**
if not than u have to update Tool Folder in SDK manager
The problem I'm facing is a very simple one...
I can't get IntelliJ IDEA 12 to help me with the creation of an Android application module (project).
After successfully installing IntelliJ IDEA 12 and making acquaintance between the IDE and both SDKs (Java and Android), when I run the "New Module wizard" and choose "Android application module" I receive an error message which states:
"Cannot find resource directory for module < blah >"
The IDE does not hang, or crash but I'm left with a half Android project which does not contain the mandatory file structure of any (straight forward, recommended) Android application.
Amongst other things:
the "res" folder is missing
and so is the activity which the wizard asked me about
and then there's no AndroidManifest.xml
Here's what the IDEA 12 Wizard creates:
and here's what the structure of the project should look like
(in this particular case it's the work of an Eclipse - Android integration
from a colleague's machine):
I've replicated the problem several times and it always happened in the same way.
It looks like something's broken in there and I've looked all over the Internet for an answer before finally deciding to ask this question.
I'm sure that all the required files and folders could be created manually but I would like the IDE to help me with this boilerplate stuff since I'm a beginner with Android development and there may be other things not working, behind the scenes, it this is the symptom.
In other words, I feel it would be very important for the wizard to create a working Hello World project.
Any help would be greatly appreciated.
Remove java*.exe files which in C:\Windows\System32 folder.
It works
I've had the same issue today, but resolved it by moving jdk from c:\program_files\java to c:\home\java and updating the system path to it.
I removed the java*.exe files from C:\Windows\System32 folder and add the JAVA_HOME in the path environment by my jdk path(in my case is C:\Program Files\Java\jdk1.6.0_45)
I'm on the android bandwagon and started going through google's "view" tutorials. Here is what I'm using:
Eclipse Galileo
Android SDK 2.1
Java SDK 6.Something I think.
Everything was hunky-dory until I hit the grid view tutorial. I got errors all over the place when I started editing the "HelloGridview.java" File. I thought I'd fix it by following through with the next part of the tutorial, creating the ImageAdapter class, but it created more. I realized alot of my issues could be resolved by importing widgets which were not mentioned in the tutorial (i.e. android.widget.GridView, .ImageView, .BaseAdapter etc.) However, after all the reconciliation suggested by eclipse the files were finally showing no errors. I go to run it as an android app and bam, "Your project contains error(s)." window comes up. There are no errors showing on the files I've created. I cleared the error log and shut down eclipse and started again the error log now reads: Conversion to Dalvik format failed with error 1. I'm a little lost at this point. I think I've included the required information. If you need to know more let me know.
Any help is appreciated.
I had the same problem. Eclipse imported a jar in the java build path and this somehow caused the error.
Right Click o the project -> Java Build Path and make sure you have only once imported android.jar.
Some of those examples on the Android developer site are a trifle out of date, and so it may be that the one giving you grief is no longer a great example to work from.
Try this GridView sample for something that definitely works on current versions of Android.