我正在使用Eclipse Android插件来构建项目,但是我在控制台窗口中收到此错误:
[2010-02-03 10:31:14 - androidVNC]Error generating final archive:
Debug certificate expired on 1/30/10 2:35 PM!
Run Code Online (Sandbox Code Playgroud)
我如何解决它?
任何时候我必须将我的项目重新导入Eclipse(如果我重新安装Eclipse,或者更改了项目的位置),几乎所有重写的方法都没有正确格式化,导致错误:
该方法必须覆盖超类方法
值得注意的是,这是Android项目 - 无论出于何种原因,方法参数值并不总是填充,所以我必须自己手动填充它们.例如:
list.setOnCreateContextMenuListener(new OnCreateContextMenuListener() {
//These arguments have their correct names
public void onCreateContextMenu(ContextMenu menu, View v,
ContextMenuInfo menuInfo) {
}
});
Run Code Online (Sandbox Code Playgroud)
最初将填充如下:
list.setOnCreateContextMenuListener(new OnCreateContextMenuListener() {
//This methods arguments were not automatically provided
public void onCreateContextMenu(ContextMenu arg1, View arg2,
ContextMenuInfo arg3) {
}
});
Run Code Online (Sandbox Code Playgroud)
奇怪的是,如果我删除我的代码,并让Eclipse自动重新创建方法,它使用我已经拥有的相同参数名称,所以我真的不知道问题在哪里,除此之外它自动格式化方法我.
这需要手动重新创建所有重写的方法,这变得非常痛苦.如果有人能解释为什么会发生这种情况或如何解决它......我会非常高兴.
也许这是由于我格式化方法的方式,这是在另一个方法的参数内?
我刚下载并安装了新的Android SDK.我想创建一个简单的应用程序来测试它.
该向导创建了此代码:
package eu.mauriziopz.gps;
import android.app.Activity;
import android.os.Bundle;
public class ggps extends Activity {
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
}
}
Run Code Online (Sandbox Code Playgroud)
但Eclipse给了我错误
R无法解决
在线
setContentView(R.layout.main);
Run Code Online (Sandbox Code Playgroud)
为什么?
PS:我有一个名为XML文件main.xml下res/layout/.
eclipse android compiler-errors android-sdk-tools android-resources
我正在尝试使用Eclipse首次尝试Android开发.我在尝试运行Eclipse时遇到了这个问题,仅在几分钟前安装了4.2版本.
在第一次尝试启动Eclipse而没有任何参数来指定Java VM之后,我收到了一条错误消息couldn't find a Java VM called javaw.exe inside the Eclipse folder,因此我找到了安装Java的位置并将该位置指定为快捷方式目标中的参数.现在我得到了一个不同的错误Java was started but returned exit code=13.
类似的问题似乎表明它是一个32位/ 64位冲突,但我99%肯定我下载了Eclipse的64位版本Java (RE 7u5),我选择了因为我有64位Windows 7.
快捷方式目标:"C:\ Program Files\Eclipse-SDK-4.2-win32-x86_64\eclipse\eclipse.exe"-vm"C:\ Program Files(x86)\ Java\jre7\bin\javaw.exe"
完整的错误代码......:
Java was started but returned exit code=13
C:\Program Files (x86)\Java\jre7\bin\javaw.exe
-Xms40m
-Xmx512m
-XX:MaxPermSize=256m
-jar C:\Program Files\Eclipse-SDK-4.2-win32-x86_64\eclipse\\plugins/org.eclipse.equinox.launcher_1.30v20120522-1813.jar
-os win32
-ws win32
-arch x86_64
-showsplash C:\Program Files\Eclipse-SDK-4.2-win32-x86_64\eclipse\\plugins\org.eclipse.platform_4.2.0.v201206081400\splash.bmp
-launcher C:\Program Files\Eclipse-SDK-4.2-win32-x86_64\eclipse\eclipse.exe
-name Eclipse
--launcher.library C:\Program Files\Eclipse-SDK-4.2-win32-x86_64\eclipse\\plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.200.v201205221813\eclipse_1503.dll
-startup C:\Program Files\Eclipse-SDK-4.2-win32-x86_64\eclipse\\plugins/org.eclipse.equinox.launcher_1.30v20120522-1813.jar
--launcher.overrideVmargs
-exitdata …Run Code Online (Sandbox Code Playgroud) 当我尝试打开Eclipse时,弹出对话框指出:
无法加载JNI共享库"C:/JDK/bin/client/jvm.dll"`.
在此之后,Eclipse强制关闭.
以下是我想提出的几点:
下载32位版本是我唯一想做的事情.
会有什么建议来解决这个问题?
默认情况下,Eclipse缩进并带有一个硬标签字符.如何将其更改为空格?
我正在尝试使用Spring Data和Neo4j.我开始尝试按照主站点链接的本指南.特别是我将我的pom.xml基于"Hello,World!".示例文件.这是我的pom.xml中针对导致问题的插件的剪辑...
<plugin>
<!-- Required to resolve aspectj-enhanced class features -->
<groupId>org.codehaus.mojo</groupId>
<artifactId>aspectj-maven-plugin</artifactId>
<version>1.0</version>
<configuration>
<outxml>true</outxml>
<aspectLibraries>
<aspectLibrary>
<groupId>org.springframework</groupId>
<artifactId>spring-aspects</artifactId>
</aspectLibrary>
<aspectLibrary>
<groupId>org.springframework.data</groupId>
<artifactId>spring-data-neo4j</artifactId>
</aspectLibrary>
</aspectLibraries>
<source>1.6</source>
<target>1.6</target>
</configuration>
<executions>
<!-- ERROR HERE IN ECLIPSE SEE BELOW FOR FULL MESSAGE -->
<execution>
<goals>
<goal>compile</goal>
<goal>test-compile</goal>
</goals>
</execution>
</executions>
<dependencies>
<dependency>
<groupId>org.aspectj</groupId>
<artifactId>aspectjrt</artifactId>
<version>${aspectj.version}</version>
</dependency>
<dependency>
<groupId>org.aspectj</groupId>
<artifactId>aspectjtools</artifactId>
<version>${aspectj.version}</version>
</dependency>
</dependencies>
</plugin>
Run Code Online (Sandbox Code Playgroud)
我看到的错误是:
Multiple annotations found at this line:
- Plugin execution not covered by …Run Code Online (Sandbox Code Playgroud) 我正在尝试编译由IBM的WSDL2Java在Java5上创建的Java 1.4代码,而无需重新创建存根并在Eclipse中看到此错误.我假设创建的存根应该只要运行时jar可用就可以编译(它们是).
Access restriction: The type QName is not accessible due to restriction on required library C:\Program Files\Java\jdk1.5.0_16\jre\lib\rt.jar
完整的类名是 javax.xml.namespace.QName
到底发生了什么?
这是我试图用香肠重构一头猪的情况吗?我最好重新创建存根吗?
eclipse ×10
android ×4
java ×4
windows ×2
32bit-64bit ×1
certificate ×1
formatting ×1
m2eclipse ×1
maven ×1
overriding ×1
performance ×1
spring-data ×1
stub ×1
superclass ×1
tabs ×1
whitespace ×1
wsdl ×1
wsdl2java ×1