Unable to create project in android SDK - android

I am trying to create an Android Application Project, but I have had a number of problems. As it is now, I cannot get beyond the first dialog box. Here is the screenshot:
I am also reading that I have every sdk up to Android 4.1, even though I only have android 4.2, as shown in the following screenshots:
Additionally, when I open the android developer tools program, the following dialog box comes up:
even though, I have the Android Developer Toolkit version 21.1.0 installed on my machine, as shown by the following screen shot:
I am very confused right now. Could somebody please help me solve these problems? Would really appreciate it.

Holo Light Theme cannot be applied to Android 2.2. You need at least a minimum sdk of Android 3.
So either don't use Holo Theme or set you minimum to Android 3.
Edit: You may look into this instead: Update Android SDK Tool to 22.0.4(Latest Version) from 22.0.1

Related

Android Studio 3.2 layout "preview" not emulating material design components properly

I've been updating my project to target sdk-api28 and I started setting up the latest MaterialComponents, but I'm now having issues with the layout Previewer within Android Studio.
The Preview just won't display the correct design for the material components, eg. adding style="#style/Widget.MaterialComponents.TextInputLayout.OutlinedBox" on a TextInputLayout view won't change the design (no outlines) in the emulated preview, but it does look okay when running on a phone (got outlines).
Here's how it should and does look when running on phones:
But here's a screenshot of how it looks in the Android studio's Preview.
I'm having this issue on any project, and even on the Shrine tutorial app with the same setup from MDC Codelabs (MDC-103(Java) - Shrine).
This happens only on the preview. Any of these projects, when running on a phone or on the emulator within Studio, look okay.
As much as I could 'think through' this, the issue is I believe somehow connected to my Android Studio, emulator, or maybe build tools versions? Please, could someone point out if I'm missing something very simple?
My Android Studio (sdk, tools etc) versions that I have installed:
Android Studio 3.2.1
Android Emulator 28.0.16
Android Platform Version: API 28: Android 9 (Pie) revision 6
Android SDK Platform-Tools 28.0.1
Android SDK Tools 26.1.1
This issue happaned to me in android studio 3.2.
after one day everything gose fine.
what i do was invalidate and restart. reset android studio default settings
the clean. and exit android studio and open it again. and it works fine
this is a bug not related to you only.
While some users who experienced similar issues, could solve this with cleaning out Android Studio cache and config, this didn't work for me.
After looking into various possible fixes and tips, I solved this by updating to Android Studio 3.4 Canary which is the latest non-guaranteed-stable version of Android Studio, which you can get by either downloading a Preview release (here: developer.android.com) or changing your update preference (within Android Studio) ie. Update channel to Dev channel or Canary channel within Android Studio Settings > Appearance & Behaviour > System settings > Updates
I do think that this might not be a proper fix, but it's the only thing that worked out for me and solved the layout (design) preview not being able to display correct design.
If someone else runs into a similar issue, make sure to first try out clearing cache, using the Invalidate and restart under File menu or any other method. The Invalidate and restart feature clears out cache and restarts android studio, after which it will have to sync again and check for all dependencies, Sdk, tools etc.
Also to avoid this issue, before trying out anything else make sure you have proper and latest SDK Build-tools, Emulator, SDK Platform-tools, SDK Tools versions installed.
I'll leave this here as an answer for now, and update it if any new solutions come around.
Sorry, I'm here 3 years late... But this was my solution for this render problem... It has Material.Light theme by default. If you change it to Light.Bridge the problem is solved!
Hope it helps some one

Missing Design Tab in Android Studio

The Design Tab in Android Studio has disappeared after I download the latest version of SDK.
Below is the screen:
enter image description here
I have tried the methods suggested in the posts similar to my issue, which is stated as follows:
Try Designer button in the right (I do not have this button)
Try View -> Tools Window -> Designer (This button is greyed)
I saw someone suggested that this is due to the SDK location is not set correctly, nevertheless, I am not sure how I should re-set the SDK location or even check whether the SDK location is wrong.
If you update Android SDK so mostly you only need to switch to a lower API:
https://www.dropbox.com/s/6ju3br0jlccqacd/api.png?dl=0
The Android SDK is a problem that bothers designer render.
But if it does not correct this error so it is usually a mistake android studios. Android Studio is a program with a lot of errors.
Sorry I´m using google translate.
Edit:
Or go to android SDK manager and download the android tools and android reposity and android assets.
If you have upgraded your android studio and you are viewing your old projects after this, you will not be able to see the design tab. So, create a new project and just import all the old java codes into new one.

Error in all android projects

I have been using eclips for android programming since about 6 months. Everything was working smooth till yesterday.
On restarting Eclipse it shows error on every project and all of them say:
Unable to resolve target 'android-21'.
And I can't even create any new project as it always says
Base Theme "Holo Light with Dark Action Bar" requires a build target API version of at least 14, and the current version is 8
And I cant start SDK manager from eclipse. Please help, and thank you everyone in advance. :)
Go to Windows -> Android SDK Manager Install the Android API Level you want, in this case 21.
Once you've finished installing, go to Window -> Preference -> Android. You should get a list of available targets. Click Apply then Ok.
Now right click your project, go to properties. Click Android. Choose your desired target.

Eclipse shows 4.0+ Buttons but not on Device

I was not able to find a solution for this and the things I tried didn't worked..
I have a Android Project in Eclipse ADT. I specified minSdkVersion="15 in the Manifest and I also set this Project to 4.0.3 from the beginning. My Layout displays perfectly in Eclipse but when I upload the App to my Device(s) (Android 4.3 and 4.2.2) it shows the pre-ICS buttons. See attached files..
On Eclipse it looks like this:
(Sorry I can't insert the pictures directly because as a new user I have no points)
On my device:
Any clue what the problem could be? I also checked the Project Properties and set the build target to Android 4.0.3 but without effect.
Make sure you also use targetSdkVersion parameter to target the latest SDK
Do you check the Theme of the actives in manifest?
Read about also in: http://developer.android.com/guide/topics/ui/themes.html#SelectATheme

Only orange messages show up in the Android Logcat

I'm using PhoneGap to develop the android application with the help of Eclipse.
But since a long time ago, the logcat shows all kind of message(warning, error...) in orange color, and the information including PID/ Tag/ Time all disappear.
Here is the pic:
I tried to open another application and with different PhoneGap version but in vain.
Please help~
IT is happenning when you are using an android device with latest api with an outdated sdk. For me I was using adt 16 and when I tried to run my app in jelly bean it appears. So I updated to latest sdk and this is solved.
To update the sdk in your eclipse Window > Android SDK Manager. From there you can install new packages.
To update adt download the latest ADT plugin from here. Then install it from Help > Install New Software then Local.
In my cases I had some problem for supportv4 library. I also updated it and reordered it to up. Else I dont think there is any other problem
Just remove the filtered text Error from Textbox. This will filtered your logs with keyword. This Textbox was used for the search logcat which contains your input keyword

Categories

Resources