引了别人的工程,eclipse下面报 The declared package XXXXXX does not match the expected package "" 的错误,所有类都报错。别人用idea开发没问题。网上查了一下,就是说类的路径和工程文件夹层级不对应。看了半天没找到问题。后来突然发现,这个工程中间的一段 aaa.bbb.ccc真正的路径不是aaa/bbb/ccc,是aaa.bbb.ccc,由于这段在包的中间,开始没发现,改了就好了。不知道idea为啥不报错,可能是比较强大吧。
详细解决方案
The declared package XXXXXX does not match the expected package
热度:97 发布时间:2023-12-09 22:13:18.0
相关解决方案
- 急求帮忙!mysql 【 Column count doesn't match value count 】,该怎么解决
- Syntax error on token "{" { expected after this token,该怎么解决
- package com.jxte.sendmessage;该如何解决
- package com.jxte.sendmessage?该怎么处理
- package 以及 import求解解决思路
- IO 操作 CRLF expected at end of chunk: -1/-1 异常、
- Microsoft Visual J# .net Redistributable Package 2.0.50727解决方案
- Microsoft Visual J# .net Redistributable Package 2.0.50727解决方法
- !odac140.bpl it is not design time package
- NHibernate in expected: <end-of-text> (possibly an invalid or unmapped class name was used in the q,该如何处理
- Microsoft JScript runtime error: Object expected,该怎么解决
- 发布dll,访问提示异常The located assembly's manifest definition with name 'Copy of TCL" does not match the assembly reference
- 新手的菜有关问题,为什么提示BC30451: Name 'data_src' is not declared
- 每个.aspx页面的前台代码中都有Inherits="xxxxxx"那前台代码与后台代码(类)是继承关系吗?解决思路
- ORA-04063: package body "SYSTEM.EMP_PKG" 有异常
- 编译范例程序时:No package 'clutter-0.9' found
- 编译实例程序时:No package 'clutter-0.9' found,该如何处理
- error: expected '=' '' '' 'asm' or 'attribute_' before 'gchar'解决思路
- Wrong arguments. new for target java.lang.reflect.Constructor expected=[java.net,该怎么处理
- error a2028:operator expected,该如何解决
- 请问关于org指令报错:instruction expected
- org.springframework.dao.EmptyResultDataAccessException: Incorrect result size: expected 一, actual 0
- unable to find package import : dclusr.bpi
- /usr/ucb/cc: language optional software package not installed解决方案
- URL里输svn://localhost/svn/tex报错C:\svn\text\conf\svnserve.conf:20: Option expected,该如何解决
- 有关问题:PACKAGE CONSTRAINT NAME UNIQUENESS KEY'XXXXXXX'
- Syntax error on token "new", ClassType expected after this token ...
- '<' or '[' expected
- must be caught or declared to be thrown 这个错误如何解决
- [求助]请教 package 的简单问题