EDIT: ANSWERED in comments
I have opened pandora's box worth of errors over the past few days and have boiled the source of my troubles down to my inability to correctly add the Google Play Services library into my project so I can have adMob ads. I should be able to go to Project>Properties>Android and then under Library hit add. However when I hit add, It's menu is all grayed out and I cant add, browse or do anything. I am using the new ADT bundle as of about April 2, "Build: v22.6.2-1085508". What exactly is wrong and how can I fix it?
Thank you very much!
Any help is greatly Appreciated!!
Related
I want to create an app in which I can add beards to face and change hairs style. I have searched for SDKs for the same but could not find any. Please help me with some open source project or with helpful links.
Thanks in advance.
I have searched for the answer to this question throughout the internet, and after mixing a linux solution and a Google Developers tutorial, finally found the answer. I hope to help everyone that bumps into the same.
Ubuntu issue
Android Developers tutorial
And the answer is...
On Android Studio, go to Help -> Edit custom VM properties
If it isn't created yet, now is the time.
A tab named studio64.exe.vmoptions or studio.exe.vmoptions will open on your IDE and you must add the following:
-javaagent:/usr/share/java/jayatanaag.jar
Save and re-run.
All done :D
When I hit "New Project" in Android Studio, I get a menu that asks me what type of project I want to make. The options are Java, Maven, Gradle, Groovy, Griffon, Static Web, Empty Project. I want to create a new project with an activity in order to start building an android app but the two options that seem remotely valid here are "Java" and "Empty Project". Choosng either of these does not create an activity for me. I tried to create an activity once the project was created by right clicking on the src file ->New->??? but I do not have an option here to create one. I am new to Android Studio could someone please help me as to why I cannot do this?
I looked at some video tutorials online and they all seemed to start with the correct menu, so online resources were of no help really...
I had this probelm either.
At last, I found that I hadn't activated the Android Support plugin.
Hope this will be helpful.
If I am right I believe you just select empty project to start a new android project. Androids website has an excellent tutorial to get beginners started: http://developer.android.com/training/basics/firstapp/index.html
I used this tutorial and it worked for me:
http://www.raywenderlich.com/78574/android-tutorial-for-beginners-part-1
Basicly you just click file\new project and you should be able to configure it and at the end you select "blank activity", which adds the activity in question. While I never saw a menu like the one you describe, it could be possible you just didn't download the important files with the sdk manager? You need the basic files and an api of your choice. It is also explained in the tutorial.
I am following this link
https://developers.google.com/games/services/android/init
With trying to add leaderboards to an android app but after I follow step 1 and it is added it throws up over 100 errors and a Jar mismatch! Fix your dependencieserror, that I understand why.
I have added the google play library no problem and gotten adverts to work by following Google's documentation but the leaderboard documentation seems to be sending me all over the place and not helping at all.
Could someone please shed some light on this, thanks!
Ok because I am still new to Android and Eclipse I had added the reference to the BaseGameUtils in the properties for the project but you have to add the Google play services as a reference for the BaseGameUtils by right clicking and selecting properties then add it as you did for the main project.
New to the forums! :) Looking forward to participating here ;)
In the mean while, I AM STUCK!
I have just ran the sdk manager and have been up to date.
My program runs fine, but when I add in the support 7 appcompat something doesn't sit well. So I am here for here! Have spent two days trying to fix this:P
All I want app compat for is the halo themes lol so my app will run on pretty much all android versions
Thanks in advance guys & gals
I had to put picture links in pastebin because only allowed two links because I have no rep! :)
http://pastebin.com/YfxzNv8U
One addition picture to show Package Explorer -> http://gyazo.com/b46ac98bacfbd051ecc1a2b3250bd68b
Thanks all
Alrighty
FIXED THE PROBLEM!
Could not answer own question because not enough rep!
Well I fixed it finally! Enough research :)
All I did was changed the Target API in project.properties from 7 to 19 and volla!
Well I fixed it finally! Enough research :)
Giving up on support library v7. What did I wrong?
All I did was changed the Target API in project.properties from 7 to 19 and volla!