Error <interface declaration>, <parcelable declaration>, AidlTokenType.import or AidlTokenType.package expected, got '.' in Android Studio

有些话、适合烂在心里 提交于 2020-08-10 05:25:09

问题


I Have a Question this Error , , AidlTokenType.import or AidlTokenType.package expected, got '.'

is For What thing?

Before this Error, I add an activity and a layout to my project

thanks


回答1:


fellow this step my pro 1- Open File -> Settings 2-Choose Editor -> Language Injections and uncheck the metadata(AIDL) option from the list Apply, and click OK.

You’re done.

3-If the problem persists, press CTRL + SHIFT + A, and type “Un-inject Language / Reference“. And Double click on the second option, i.e. Un-inject Language/Reference.

4-Now uncheck the Language injection option. Click on apply and OK.

5- Go to File -> Invalidate Cache / Restart…

The Android Studio will now restart with modified settings. Hope this helps you to get rid from that AidlTokenType.import error.



来源:https://stackoverflow.com/questions/46314354/error-interface-declaration-parcelable-declaration-aidltokentype-import-or

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!