xml - A lot of 'cannot resolve symbol' errors in android studio -


i built project build > rebuild project , got lot of 'cannot resolve symbol' errors, , lot of text went 'red' , building project gave errors follows:

    information:gradle tasks [clean, :generatedebugsources, :generatedebugandroidtestsources, :app:generatedebugsources, :app:generatedebugandroidtestsources] :clean :app:clean up-to-date :prebuild up-to-date :predebugbuild up-to-date :checkdebugmanifest :preparedebugdependencies :compiledebugaidl :compiledebugrenderscript :generatedebugbuildconfig :generatedebugassets up-to-date :mergedebugassets :generatedebugresvalues up-to-date :generatedebugresources :mergedebugresources :processdebugmanifest :processdebugresources c:\users\hp\androidstudioprojects\jteventsandannouncements.bak3\build\intermediates\manifests\full\debug\androidmanifest.xml error:(16, 23) no resource found matches given name (at 'icon' value '@drawable/ic_launcher'). error:(17, 24) no resource found matches given name (at 'label' value '@string/app_name'). error:(18, 24) no resource found matches given name (at 'theme' value '@style/apptheme'). error:(21, 28) no resource found matches given name (at 'label' value '@string/app_name'). error:execution failed task ':processdebugresources'. > com.android.ide.common.process.processexception: org.gradle.process.internal.execexception: process 'command 'd:\program files\android\sdk\build-tools\21.0.1\aapt.exe'' finished non-zero exit value 1 information:build failed information:total time: 16.514 secs information:5 errors information:0 warnings information:see complete output in console 

this styles.xml:

    <!--         base application theme, dependent on api level. theme replaced         appbasetheme res/values-vxx/styles.xml on newer devices.     -->     <style name="appbasetheme" parent="android:theme.holo.light">         <!--             theme customizations available in newer api levels can go in             res/values-vxx/styles.xml, while customizations related             backward-compatibility can go here.         -->     </style>      <!-- application theme. -->     <style name="apptheme" parent="apptheme">         <!-- customizations not specific particular api-level can go here. -->     </style>  </resources> 

styles-v11:

<resources>      <!--         base application theme api 11+. theme replaces         appbasetheme res/values/styles.xml on api 11+ devices.     -->     <style name="appbasetheme" parent="android:theme.holo.light">         <!-- api 11 theme customizations can go here. -->     </style>  </resources> 

styles-v14:

    <!--         base application theme api 14+. theme replaces         appbasetheme both res/values/styles.xml ,         res/values-v11/styles.xml on api 14+ devices.     -->     <style name="appbasetheme" parent="android:theme.holo.light">         <!-- api 14 theme customizations can go here. -->     </style>  </resources> 

my layout design tab 1 fragment shows following error:

 rendering problems note: project contains java compilation errors, can cause rendering failures custom views. fix compilation problems first.  following classes not found: - android.support.v4.widget.swiperefreshlayout (fix build path, edit xml, create class)  tip: try build project. 

does have idea might going on?

update:

here's build.gradle:

// top-level build file can add configuration options common sub-projects/modules.  apply plugin: 'android'  buildscript {     repositories {         jcenter()     }     dependencies {         classpath 'com.android.tools.build:gradle:1.1.0'     } }  allprojects {     repositories {         jcenter()     } }  android {     buildtypes {         debug {             debuggable true         }     }       compilesdkversion 21     buildtoolsversion "21.0.1"      defaultconfig {         minsdkversion 15         targetsdkversion 21     }  } 

update xml :

    <resources>     <style name="appbasetheme"  parent="@android:style/theme.holo.light">     </style>      <style name="apptheme" parent="android:theme.holo.light">    </style>  <resources> 

then rebuild & restart


Comments