简体   繁体   English

值的java.lang.String布局无效

[英]Invalid layout of java.lang.String at value

I am creating an Android mobile app in Eclipse Luna and everything was working fine. 我正在Eclipse Luna中创建一个Android移动应用程序,并且一切正常。 Then I received the following error. 然后,我收到以下错误。 I have tried running my project as an Android Application, editing the debug settings, and removing Android Lib from the Bootstrap Entries, but nothing has worked. 我尝试将项目作为Android应用程序运行,编辑调试设置以及从Bootstrap条目中删除Android Lib,但没有任何效果。 Does anyone have anything else that I can try? 还有人可以尝试的吗?

I only receive the error message when I run my program as there are no errors throughout the program until runtime. 我只在运行程序时收到错误消息,因为直到运行时为止,整个程序都没有错误。 The program also runs as a Java application but won't work on an android application. 该程序还可以作为Java应用程序运行,但不能在android应用程序上运行。 When I installed the android SDK plugin that's when the error occurred but until the plugin was installed the program ran. 当我安装了android SDK插件时,即发生了错误,但是直到插件安装完成,程序才开始运行。 My error message in full is: 我的完整错误消息是:

Invalid layout of java.lang.String at value
#
#    A fatal error has been detected by the Java Runtime Environment:
#
#    Internal Error (javaClasses.cpp:126), pid=4632, tid=4988
#    fatal error: Invalid layout of preloaded class
#
#    JRE version:  (8.0_25-b18) (build )
#    Java VM: Java HotSpot(TM) Client VM (25.25-b02 mixed mode windows-x86 )
#    Failed to write core dump. Minidumps are not enabled by default on   client     versions of Windows
#
#    An error report file with more information is saved as:
#    C:\Users\Kevin\Desktop\Final Year      Project\IndependentRetailers\hs_err_pid4632.log
#
#    If you would like to submit a bug report, please visit:
#    http://bugreport.sun.com/bugreport/crash.jsp
#

In case of an Android project, you have to remove Android Lib from the launch configuration for that specific class. 如果是Android项目,则必须从该特定类的启动配置中删除 Android Lib。 Use the "walkthrough" below as a guide. 使用下面的“演练”作为指南。

Project->Properties->Run/Debug Settings; 项目->属性->运行/调试设置;

Select your Class and click " Edit "; 选择您的班级 ,然后单击“ 编辑 ”;

Open the tab " Classpath " and remove Android Lib from "Bootstrap Entries"; 打开标签“ Classpath ”,然后从“ Bootstrap Entries”中删除 Android Lib;

Apply everything and Run the class again. 应用所有内容,然后再次运行课程。

OR 要么

You can get past this by using the Run As -> Android Application. 您可以通过运行方式-> Android应用程序来解决此问题。 Possibly check the Run configuration for other issues. 可能检查运行配置是否存在其他问题。

Hope this helps 希望这可以帮助

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Eclipse - Android - java.lang.String的无效布局值 - Eclipse - Android - Invalid layout of java.lang.String at value 致命错误:java.lang.String的布局值无效 - Fatal Error: Invalid Layout of java.lang.String at value 在Eclipse内部Android项目运行带有main(String [] args)的Java类,因为Java应用程序导致“java.lang.String的值无效布局” - Inside Eclipse Android project run Java classes with main(String[] args) as Java Application causes “Invalid layout of java.lang.String at value” java.lang.string类型的Java值无法转换为jsonobject - Java value of type java.lang.string cannot be converted to jsonobject 扩展 java.lang.String - Extend java.lang.String [java.lang.String中; 无法强制转换为java.lang.String - [java.lang.String; cannot be cast to java.lang.String 价值 - value <!DOCTYPE of type java.lang.string can not be converted to jsonobject java.lang.String类型的值&lt;无法在Android中转换为JSONArray - Value < of type java.lang.String cannot be converted to JSONArray In Android 无法将“java.lang.String”类型的值转换为所需类型 - Cannot convert value of type 'java.lang.String' to required type 如何设计一个持有java.lang.String的不可变值类? - How to design an immutable value class holding java.lang.String?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM