Cannot Resolve symbol R

后端 未结 8 1822
礼貌的吻别
礼貌的吻别 2021-01-18 07:02

I was working on Android Studio for adding a short toast message.(I was making an Android Wear Application)

I couldn\'t know why this code has error on \'symbol R\'

8条回答
  •  迷失自我
    2021-01-18 07:16

    I resolved it by editing my build.gradle file.

    The compiledSdkVersion must align with your appcompat dependency.

    My compileSdkVersion was 22 so I edited my appcompat dependency to

    compile 'com.android.support:appcompat-v7:22.2.1'
    

    So, I hope this can be a solution.

提交回复
热议问题