xml - Android Studio - Cannot Resolve Symbol 'R' -
this question has been asked many times before, have tried , nothing has worked. cleaning, rebuilding, syncing gradle, editing xml.
i error "cannot resolve symbol 'r'" on every file has 'r.blah.blah' in it.
this line of code error shows up.
int gray = getresources().getcolor(r.color.card_gray);
does have idea why happening? i've tried restarting hasn't worked, i'm thinking it's bug in current android studio version.
edit: android manifest , beginning of java file (one of affected ones)
i have 3 manifests, 1 each module (cardsui, silk, app), i'm making icon pack. error happening in 3 modules.
app:
too long post, here gist: app manifest
cardsui:
<?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.afollestad.cardsui" android:versioncode="1" android:versionname="1.0"> <uses-sdk android:minsdkversion="15" android:targetsdkversion="18"/> </manifest>
silk:
<?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.afollestad.silk" android:versioncode="1" android:versionname="0.1"> <uses-sdk android:minsdkversion="15" android:targetsdkversion="19"/> <application/> <!-- required build aar. --> </manifest>
example start of affected cardsui file:
package com.afollestad.cardsui; import android.content.context; import android.util.attributeset; import android.view.view; import android.widget.adapterview; import android.widget.listadapter; import android.widget.listview;
edit 2: tried creating new project , importing files, , same thing. getting annoying now.... please someone!
thanks
it if have deleted
<string name="action_settings">settings</string>
in strings.xml, not deleted main.xml file in menu folder.
Comments
Post a Comment