Android studio isn't working properly [duplicate] - android-studio

This question already has answers here:
"failed to resolve x" errors after updating to Android studio to 2.2
(2 answers)
Closed 1 year ago.
I just downloaded Android Studio bundle v2.3.3 and in the Gradle console, I'm getting this error:
Failed to resolve: javax.annotation-api:1.2
At the top of the Android Studio, everything is underlined in red which includes src, main, java, com, example, and main activity.java.

Check whether your computer is connected to the Internet or not. If yes, then I would suggest you to install all the sdk tools and the sdk platforms(at least the ones you're gonna use for the app) if you haven't already.

Related

Does flutter support ios or iphones on android studio? [duplicate]

This question already has answers here:
Can I use Flutter to develop IOS in Android Studio?
(3 answers)
Closed 3 years ago.
I know this may sound stupid,but i was searching for a very long time on how can i make an IOS app without using x code or having a mac OS,and i finally find this plugin on android studio called flutter,but my question is can i connect an external iPhone (NOT AN EMULATOR) and start the app on that iPhone from android studio?
I have tried connecting my iPhone to my PC using USB,but it doesn't show up in android studio.
And it doesn't show me any error like your iPhone isn't supported etc..
As a matter of fact No.
Apple doesn't support the idea and you have to consider using Mac os and xcode, for which you can use e.g. a virtual machine.

How to stop Android Studio from trying to install Android SDK updates?

I have linked my Android Studio project's Android SDK Directory to our software team's standard Android SDK directory (I can't change it, so please save the effort of typing "I can't understand why you don't simply use the normal path from Android Studio :-) ).
I have disabled automatic updates in Android Studio (see screenshot). Then closed and re-opened the project.
Yet, every time I try to build, it tries to install an update to Android SDK and fails.
How can I stop Android Studio from trying to install unwanted updates?

Android SDK missing with Android Studio 3.1

This question is closed to another question:Android SDK missing with Android Studio 3
I followed all the recommandation already proposed but I still have the issue.
I had some issues when I tried to update my Android Stduio to version 3.1.
Thus, I uninstalled everything, then delete the directories, and cleaned C:\Users\.android, .AndroidStudio, ..
But I always have the same message at the end, indicating that SDK tools directory is missing.
SDK tools directory is missing
And if I enter SDK Components Setup, I have the following window. I cannot click in the Android SDK box (insidcating already installed ?), and at the end the same message than above.
SDK Components Setup
I already spent a full day on this issue and I cannot find the solution. I would really appreciate some help !
I work on Windows 7 (64 bits version)
On the top right corner, there is a the SDK Manager, click on it if the SDK path is not defined install a new one and then set its path to where it is.

How to solve Android Studio rendering problems? [duplicate]

This question already has answers here:
Android N requires the IDE to be running with Java 1.8 or later?
(17 answers)
Closed 6 years ago.
Created a new project in Android Studio choosing Android N as the minimum SDK with everything else as default.
Once created open layout/activity_main.xml
Expected result:
The layout editor correctly displays the empty activity.
Actual result:
The following error message is displayed:
Rendering Problems:
Android N requires the IDE to be running with Java 1.8 or later.
Install a supported JDK (links to:
https://developer.android.com/preview/setup-sdk.html#java8).
You have old JDK (Java Development Kit) installed to build apps for Android N. Go to this link (http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html) and install java 1.8 or later.

Visual Studio 2012 Ultimate is incompatible on Windows 8 [duplicate]

This question already has an answer here:
Visual Studio 2012 compatibility
(1 answer)
Closed 9 years ago.
I just got a new Windows 8 laptop, and one of the first things I installed was Visual Studio 2012 Ultimate. Once it was done, I opened it up, and I am getting this:
I have tried clicking both buttons (Get help online and Run the program without getting help), and neither work. Although, I don't understand why it is having compatibility issues when I had this same program on a W8 laptop before I got a new one. I have heard that installing an update will do it but I can't even start up VS to get to the Tools > Extensions > Check for updates. Does anyone know how to fix this?
Please install update 4 in order to get rid of that message.
You can download it from here :
http://www.microsoft.com/en-au/download/details.aspx?id=39305

Resources