I am new to developing in Android Studio, I started in Windows 10 but since Win 10 gave me some general issues, I installed Ubuntu 16.04 LTS and installed Android Studio.
Its been quite a difficult one to install Java and Android SDK again and while after all is setup, I started with one tutorial from Google for using Constraint Layout. It was all working fine but suddenly after a reboot of my machine, now I am facing strange issues.
The properties window of any component (imageview or textview) will never load and it shows 'loading' with a forever-rotating-circle.
in even log, I find this,
Image of the properties loading
IllegalArgumentException: Missing attribute definition for orientation
I thought there could be issues with Android repository not installed properly. So, I used
android sdk list -a
and installed the Android repository again. Even after multiple restart of the android studio, i still get the error.
Can someone help?
Edit: Support libraries are indeed added. Support Library in dependency in project structure
Make sure you set the orientation for your LinearLayouts and most of all make sure you are not making any spelling mistakes in your arguments for example in your LinearLayout make sure to have android:orientation="vertical" and double check for spelling mistakes like writing android:orientation="verticall"with two "l" can sometines cause these sorts of errors.
Related
I'm in the process of setting up my system to deploy OpenFrameworks apps on Android devices.
I've followed the instructions here to the letter: http://openframeworks.cc/setup/android-studio/
However, whenever I open one of the OF - Android example projects, I keep getting the following error:
I haven't turned up anything yet as far as what the issue may be (and this is my first foray to Android anything). Anyone have an idea?
It could be because there are some spaces in your directory path in "Development Tools" and "3rd Party Tools". I've had weird issues in the past with openFrameworks and Android studio like the one you're having.
Try to put openFrameworks in a path structure without spaces. Maybe clone a fresh version to test.
I installed Android Studio 2.1.2.0v and when I want to make a project, have a problem.
Every thing about JDK is right.
Might due to proxy gradle couldn't download it's latest build files, there must be some connection issue you can alternatively do is get sdk from somewhere and in offline mode at least open one project, after it you can update all things and if problem occurs you can easily find solution as android studio clearly shows what are the problems behind these kinda of problems.
It can also happen due to antivirus sometimes,
Recommended reading : https://medium.com/#cesarmcferreira/speeding-up-gradle-builds-619c442113cb#.8h6wyo50c
https://stackoverflow.com/a/27171878/5476209
https://stackoverflow.com/a/21815505/5476209
I've just tried to get into Android development, but somehow I can't get my project working properly. I followed the "Getting Started" guide (http://developer.android.com/training/basics/firstapp/creating-project.html), but I'm stuck on building my project.
Everything is going fine but the creation of my MainActivity. I've left all the settings regarding the activity to default. Somehow when I create my project, there's no activity definition in the AndroidManifest.xml.
I've two potential solutions, but none of them seem to work. The mainly suggested workaround is to update the ADT Plugins through the correct repository (Eclipse android project not creating blank activity). However in my situation the updater states that I've already got these packages installed.
The other possible solution was to remove the support library from the SDK manager. After that, trying to create a new project in Eclipse should prompt me to install this package. Somehow I don't seem to get this prompt. (https://stackoverflow.com/a/11260656/3786210).
Are there any other possible solutions I could try out to get my project correctly built? Thanks in advance!
Additional information:
Windows 8 (64 bit)
ADT packages version: 23.0.0.1245622
Target SDK and Compile With: Android 4.4 (KitKat)
You should just yse IDEA instead of Eclipse
http://www.jetbrains.com/idea/download/
Eclipse sometimes can produce such problems
Please see below. I have a feeling I've got the SDKs configured incorrectly, but I'm not sure how to solve it. I tried Googling for answers but no one had this exact problem.
Do I have the wrong Java version maybe? It seems like the two SDKs might be conflicting with each other.
I made this project via:
Create New Project
Android > Application Module
Defaults and Finish
Edit: See screenshot. I got it working. All I did was create a new project and re-select the Android SDK. I'm still thinking it was because I added too many SDKs/JDKs the first time. I think all you need is the Android SDK and don't need to add the normal Java one too.
I tried what for3st suggested to no avail at first, but i've heard other places that you should use JDK 1.6 for IntelliJ IDEA in other places, so you can do that here. Also, you set the SDK by going 'File'->"Project Structure" -> "Platform SettingS" -> "SDKs"
In the end, I also switched from Android 2.2 to 2.3.3 (api 10) and that got it to work. Don't have a good idea why it didn't work for 2.2, but since I just want a beginner's tutorial, I'm fine with that.
I had exactly the same problem, but the conditions leading up to it are quite unusual.
I downloaded the Android SDK as a zipfile and unextracted it into /opt.
However, the permissions did not allow normal users to enter all directories or execute all files... so when IntelliJ indexed the SDK it only picked up the res jar... and never added the sources to the library path!
Deleting the SDK, fixing the permissions problem in the SDK, and creating a new reference in IntelliJ fixed it.
I decided lately to start playing arround with some Android programming and I have a very wierd problem that I can not specify if it is caused by the version of Eclipse that I use (aka Juno). More specifically, when I open let's say the AndroidManifest.xml on eclipse Indigo at the bottom there are 5 buttons, Manifest, Application, Permission, Instrumentation and AndroidManifest.xml.
Now when I open this file on eclipse Juno (forgot to mention that I use the latest Android sdk tools) there are no such buttons at the bottom and I simply can't move to another aspect/view. I don't know if it is a version specific problem with Juno, but since I find it kinda annoying and I prefer mostly to work on Juno.
I tried to search arround the net a bit and couldn't find anything, also I could't find an option in Eclipse that could (perhaps) disable/enable such a feature. Also, i 'd like to mention that my OS is ubuntu 12.04 lts 32 bit.
Any feedback is appreciated!
Try open these with right click on an xml file, then use Open With -> Android XML Common Editor.