<interface declaration>, <parcelable declaration>, AidlTokenType.import or AidlTokenType.package ...

简介: <interface declaration>, <parcelable declaration>, AidlTokenType.import or AidlTokenType.package ...

<interface declaration>, <parcelable declaration>, AidlTokenType.import or AidlTokenType.package expected, got ‘com’

20160315100033138.png

如上所示,当我在编写fragment布局文件的时候,出现了如上的错误


解决办法


20160315100136482.png


Android Studio -> Settings -> Editor -> Language Injections

将最后一个删除即可。

经验证,虽然有报错,但是APP依然可以运行~however,我们还是要把它干掉~


相关文章
Unable to interpret the implicit parameter configuration with dataType: , dataTypeClass: class java.
Unable to interpret the implicit parameter configuration with dataType: , dataTypeClass: class java.
566 0
|
消息中间件 Java RocketMQ
【Java】Error creating bean with name ‘functionBindingRegistrar‘ defined in class path resource的一种解决方式
【Java】Error creating bean with name ‘functionBindingRegistrar‘ defined in class path resource的一种解决方式
144 0
|
Java 关系型数据库 MySQL
15. 成功解决:java: Can't generate mapping method with primitive return type.
今天启动 SpringBoot 项目时,报了如下错误:`java: Can't generate mapping method with primitive return type.`
1022 0
|
SQL Java 数据库连接
org.apache.ibatis.binding.BindingException: Mapper method 'attempted to return null from a method wi...
org.apache.ibatis.binding.BindingException: Mapper method 'attempted to return null from a method wi...
211 0
|
Java 数据库连接 mybatis
org.apache.ibatis.binding.BindingException: Type interface is not know to the MapperRegistry.
错误原因 没有将映射文件引入到MyBatis的核心文件中。 将映射文件引入即可。
163 0
org.apache.ibatis.binding.BindingException: Type interface is not know to the MapperRegistry.
JavaFX报错:Class FIFinderSyncExtensionHost is implemented in both
JavaFX报错:Class FIFinderSyncExtensionHost is implemented in both
77 0
|
存储 Android开发 索引
resource.arsc解析之 Dynamic package reference
加载Theme出错 这是一篇补充文章,在做动态替换resId的过程中,我发现bag类型的ResTable_entry在使用过程中存在问题。比如style,其parent解析一直有问题
289 0
|
开发工具 Android开发
解决Error:Could not determine the class-path for interface com.android.builder.model.AndroidProject.
解决Error:Could not determine the class-path for interface com.android.builder.model.AndroidProject.
214 0
解决Error:Could not determine the class-path for interface com.android.builder.model.AndroidProject.
|
前端开发
SpringMVC - Failed to instantiate Specified class is an interface
SpringMVC - Failed to instantiate Specified class is an interface
525 0