Android Studio: Gradle: error: cannot find symbol variable

后端 未结 8 537
Happy的楠姐
Happy的楠姐 2020-11-27 20:07

I was working on my app and everything was normal until I tried to display image in java.

I ran the app once and it ran normally, the picture was displayed. After th

8条回答
  •  时光取名叫无心
    2020-11-27 20:36

    If you are using a String build config field in your project, this might be the case:

    buildConfigField "String", "source", "play"
    

    If you declare your String like above it will cause the error to happen. The fix is to change it to:

    buildConfigField "String", "source", "\"play\""
    

提交回复
热议问题