Android - activity_main cannot be resolved or is not a field

后端 未结 11 1811
栀梦
栀梦 2020-12-05 05:40

Previous people have had the same error message, but the solution has always been to remove or modify some import \"android.R\". I have no such import so I\'m really lost

11条回答
  •  我在风中等你
    2020-12-05 06:17

    I had same error im my app and i solved it by 1.removing import android.R; and 2.import com.example.yourpakagename.R;.3. After that clean the project.4. run project

提交回复
热议问题