Cannot resolve Symbol R (Imported project from Eclipse to Android Studio) - android

I know there have been a lot of people asking this question, and I've read many posts, but none have worked for me...
I updated everything, made sure I have the build tools, most up-to-date SDK etc. and I followed the steps on the Android site for migrating projects from Eclipse to Android Studio.
My project works fine in Eclipse, but when I view it in Android Studio, I get the "Cannot resolve symbol R" in my main file.
Does anyone have any insight on this?

Try to use the new version (0.4.3) of the gradle build plugin, that was released yesterday.
More information about this version on g+ here.

Update Android Studio. I had the same problem till today. But then I updated the studio and this problem vanished

Related

Gradle Sync Failed :No Such Property:Gradle Version For class:JetGradlePlugin

I had Tried various ways to resolve the issue that are given by the people on the same questions been asked in past,but that is realted to the intellij idea
I had tried below ways ,but it didn't worked for me -_-
* deleted the .gradle file and then agained opened the project(in hope that android studio automatically would installed the needed version of the gradle)
changed the gradle version and have done trial and error but didn't worked.
My original version of the Gradle and Android PLugin version are has shown below in the picture.
My version of the android studio that I had installed is 3.0.1
Pls someone help
Thank You
Hey Guys ,I got the answer ,all and only we have to do is go to project structure in android studio and then go to project and then change your gradle version to 4.1 and android plugin version to 3.0.1
Click OK
And see the magic 😊

Project is not compatible with monoandroid81(MonoAndroid,Version=v8.1)

I was just coding in my Xamarin.Forms project, and suddenly, this error appeared:
Project is not compatible with monoandroid81(MonoAndroid,Version=v8.1). Project TaskX.iOS supports: xamarinios10 (Xamarin.iOS,Version=v1.0)
I don´t really know what this means. Does anyone have a solution?
After a few days of messing around, it worked when I installed the latest version -
I had 8.1 installed but as soon as I installed "Android SDK Platform 28" (Latest) + updated all sdk's everything worked
maybe updating the sdk's was the solution but just make sure you specify a installed (updated) android version correctly
This is yet another failing of the Visual Studio error list. I am getting this error on my Android projects and a very similar one on my IOS project. Neither project uses NHibernate. I can unload my NHibernate project and both my Android and IOS project still build. Yet the error remains. I can change the error list filter to Build so I can ignore this IntelliSense error. It's not much of a solution but neither is Visual Studio's error list.
I fixed this issue removing an android reference on my iOS project.
Expand reference on your iOS project and look for and .Droid and remove it

How to fix "Android Studio build failed: Unknown android attribute 'MenuView'" error during :appcompat:generateDebugRFile task

I'm able to run new Android Studio projects perfectly, but I am trying to build an older project and keep receiving the error "Unknown android attribute 'MenuView'" during the :appcompat:generateDebugRFile task. I have tried using different gradle versions, different build tools versions, and changing the api level. I even tried the solutions for this similar post with no luck. The error definitely hints at an issue with the appcompat library, but android-support-v7 should be fine and I've found most instructions for updating the appcompat library to be outdated.
I'm really frustrated with this error (especially since I've been able to build the project recently in the past). Any help would be greatly appreciated
Fixed!
Turned out the gradle version that I was using was too new for the older project. When I tried to change to an older version in Android Studio, it wouldn't let me.
Solution was to checkout a fresh copy from git that used the older version and to not set gradle wrapper

android studio: nothing working getting different different errors

I'm trying to learn AS, but after struggling for 3 days no progress.
Using https://www.udacity.com for learning.
Trying the hello world app from there, got this error Gradle DSL method not found: 'android()'.
I've worked in eclipse, but migrating from eclipse to AS looks very tough decision for me. I'm using cordova cli so far, now thinking to use AS.
While runing the app am not able to open RUN TOOL it show but is grey color(which is not clickable).
Downloaded new Gradle version (2.10), and set the path to that directory.But still showing Gradle version 2.2.1 in Project Structure.
Checked in stackoverflow as well, but nothing worked. Worst experieence.
Any body have idea what is going on, would be helpfull.
Android Studio 1.2.2
Make sure you have the latest Gradle and Android Studio:
https://www.gradle.org/
http://tools.android.com/tech-docs/new-build-system/version-compatibility
Go for more
Android Studio Gradle DSL method not found: 'android()' -- Error(17,0)
Udacity's Android courses are using the newest dependencies and AS version.
Please remove existing 1.2 version and upgrade it to 1.5.1 to get the fresh experience and less building problems
Be sure that you're using Oracle JDK7 not Java 8 SDK. It may cause some problems with Gradle
I recommend you also try to follow the steps in this post: I just installed Android Studio and created a new project, it always came up with Error with gradle
Have a question? Please free to ask

How do you view the project tree in Android Studio v0.2.x?

I can't seem to find the project files in to the newer version of Android Studio. In the screenshot below you can see that it doesn't display the entire project tree.
http://i.stack.imgur.com/ts172.png
The solution offered in this post doesn't fix my problem.
Press alt+1
this work on my android studio 0.3.5 on linux
It happened to me too, in this link it says something about upgrading:
Windows users: Do not install Android Studio 0.2.x in the same location as 0.1.x. Doing so may cause errors such as ClassCastException or other unexpected behaviors. It's best if you remove your previous version of Android Studio 0.1.x.
I fixed it uninstalling my currend Android Studio installation, removing the folder where it was installed with the remaining files, and installing it again. It works correctly now apparently.
I have had the same problem on Android Studio 1.2.2. I have closed and reopen project.

Categories

Resources