App läst sich nicht mehr auf das Gerät installieren

  • Antworten:5
Yannick F.
  • Forum-Beiträge: 3

16.05.2014, 17:53:35 via Website

Hallo,

aus irgendeinem Grund lässt sich meine App nicht mehr auf meinem S4 vom Eclipse aus installieren. Ich bekomme dann diese Error-Meldung:

#
# A fatal error has been detected by the Java Runtime Environment:
#
#  Internal Error (javaClasses.cpp:136), pid=420, tid=4032
#  fatal error: Invalid layout of preloaded class
#
# JRE version:  (7.0_45-b18) (build )
# Java VM: Java HotSpot(TM) 64-Bit Server VM (24.45-b08 mixed mode windows-amd64 compressed oops)
# Failed to write core dump. Minidumps are not enabled by default on client versions of Windows
#
# If you would like to submit a bug report, please visit:
#  >>>>Java Websitelink<<<<<
#

---------------  T H R E A D  ---------------

Current thread (0x0000000002631000):  JavaThread "Unknown thread" [_thread_in_vm, id=4032, stack(0x0000000002430000,0x0000000002530000)]

Stack: [0x0000000002430000,0x0000000002530000]

---------------  P R O C E S S  ---------------

Java Threads: ( => current thread )

Other Threads:

=>0x0000000002631000 (exited) JavaThread "Unknown thread" [_thread_in_vm, id=4032, stack(0x0000000002430000,0x0000000002530000)]

VM state:not at safepoint (not fully initialized)

VM Mutex/Monitor currently owned by a thread: None

GC Heap History (0 events):
No events

Deoptimization events (0 events):
No events

Internal exceptions (0 events):
No events

Events (10 events):
Event: 0.010 loading class 0x0000000002675760 done
Event: 0.010 loading class 0x0000000002675180 done
Event: 0.010 loading class 0x0000000002675160
Event: 0.010 loading class 0x000000000267d260
Event: 0.010 loading class 0x000000000267d260 done
Event: 0.010 loading class 0x000000000267d290
Event: 0.010 loading class 0x000000000267d290 done
Event: 0.010 loading class 0x000000000267d2c0
Event: 0.010 loading class 0x000000000267d2c0 done
Event: 0.010 loading class 0x0000000002675160 done


Dynamic libraries:
0x00007ff7cdb00000 - 0x00007ff7cdb33000     C:\Program Files\Java\jdk1.7.0_45\bin\javaw.exe
0x00007ffb2f5e0000 - 0x00007ffb2f78a000     C:\Windows\SYSTEM32\ntdll.dll
0x00007ffb2d7e0000 - 0x00007ffb2d91a000     C:\Windows\system32\KERNEL32.DLL
0x00007ffb2cd50000 - 0x00007ffb2ce5f000     C:\Windows\system32\KERNELBASE.dll
0x00007ffb2b3e0000 - 0x00007ffb2b468000     C:\Windows\system32\apphelp.dll
0x00007ffb261c0000 - 0x00007ffb2620f000     C:\Windows\AppPatch\AppPatch64\AcGenral.DLL
0x00007ffb2d420000 - 0x00007ffb2d4c7000     C:\Windows\system32\msvcrt.dll
0x00007ffb2c830000 - 0x00007ffb2c85b000     C:\Windows\SYSTEM32\SspiCli.dll
0x00007ffb2f580000 - 0x00007ffb2f5d1000     C:\Windows\system32\SHLWAPI.dll
0x00007ffb2f3e0000 - 0x00007ffb2f551000     C:\Windows\system32\USER32.dll
0x00007ffb2d660000 - 0x00007ffb2d7d8000     C:\Windows\system32\ole32.dll
0x00007ffb2dc60000 - 0x00007ffb2f077000     C:\Windows\system32\SHELL32.dll
0x00007ffb2bfc0000 - 0x00007ffb2bfde000     C:\Windows\SYSTEM32\USERENV.dll
0x00007ffb2d370000 - 0x00007ffb2d415000     C:\Windows\system32\ADVAPI32.dll
0x00007ffb23af0000 - 0x00007ffb23b0b000     C:\Windows\SYSTEM32\MPR.dll
0x00007ffb2ce90000 - 0x00007ffb2cfc6000     C:\Windows\system32\RPCRT4.dll
0x00007ffb2cfd0000 - 0x00007ffb2d027000     C:\Windows\SYSTEM32\sechost.dll
0x00007ffb2f090000 - 0x00007ffb2f266000     C:\Windows\SYSTEM32\combase.dll
0x00007ffb2d4d0000 - 0x00007ffb2d615000     C:\Windows\system32\GDI32.dll
0x00007ffb2c950000 - 0x00007ffb2c964000     C:\Windows\SYSTEM32\profapi.dll
0x00007ffb2b1b0000 - 0x00007ffb2b24f000     C:\Windows\SYSTEM32\SHCORE.dll
0x00007ffb2d620000 - 0x00007ffb2d654000     C:\Windows\system32\IMM32.DLL
0x00007ffb2d920000 - 0x00007ffb2da59000     C:\Windows\system32\MSCTF.dll
0x00007ffb18ae0000 - 0x00007ffb18c33000     C:\PROGRA~2\SearchProtect\SearchProtect\bin\SPVC64Loader.dll
0x00007ffb2b250000 - 0x00007ffb2b25a000     C:\Windows\SYSTEM32\VERSION.dll
0x00007ffb2ab40000 - 0x00007ffb2ad9a000     C:\Windows\WinSxS\amd64_microsoft.windows.common-controls_6595b64144ccf1df_6.0.9600.17031_none_6242a4b3ecbb55a1\COMCTL32.dll
0x0000000071fa0000 - 0x0000000072072000     C:\Program Files\Java\jdk1.7.0_45\jre\bin\msvcr100.dll
0x00000000717d0000 - 0x0000000071f99000     C:\Program Files\Java\jdk1.7.0_45\jre\bin\server\jvm.dll
0x00007ffb2b280000 - 0x00007ffb2b289000     C:\Windows\SYSTEM32\WSOCK32.dll
0x00007ffb2ada0000 - 0x00007ffb2adbf000     C:\Windows\SYSTEM32\WINMM.dll
0x00007ffb2ce60000 - 0x00007ffb2ce67000     C:\Windows\system32\PSAPI.DLL
0x00007ffb2f380000 - 0x00007ffb2f3d8000     C:\Windows\system32\WS2_32.dll
0x00007ffb2aae0000 - 0x00007ffb2ab0a000     C:\Windows\SYSTEM32\WINMMBASE.dll
0x00007ffb2f080000 - 0x00007ffb2f089000     C:\Windows\system32\NSI.dll
0x00007ffb2ca20000 - 0x00007ffb2ca6a000     C:\Windows\SYSTEM32\cfgmgr32.dll
0x00007ffb2b7e0000 - 0x00007ffb2b806000     C:\Windows\SYSTEM32\DEVOBJ.dll
0x00000000717c0000 - 0x00000000717cf000     C:\Program Files\Java\jdk1.7.0_45\jre\bin\verify.dll
0x0000000071790000 - 0x00000000717b8000     C:\Program Files\Java\jdk1.7.0_45\jre\bin\java.dll
0x0000000071770000 - 0x0000000071785000     C:\Program Files\Java\jdk1.7.0_45\jre\bin\zip.dll

VM Arguments:
jvm_args: -Dfile.encoding=Cp1252 -Xbootclasspath:H:\Yannick\Desktop\Programmierung\Java\Android\adt-bundle-windows-x86_64-20131030\sdk\platforms\android-19\android.jar 
java_command: de.Yannick.Hausautomatik.MainActivity
Launcher Type: SUN_STANDARD

Environment Variables:
JAVA_HOME=C:\Program Files\Java\jdk1.7.0_45
PATH=C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\IVI Foundation\VISA\WinNT\Bin;C:\Program Files (x86)\CineForm\Tools;C:\Program Files (x86)\GoPro\Tools;C:\Program Files\Microsoft SQL Server\110\Tools\Binn\;C:\Program Files (x86)\Gource\cmd;H:\gource;C:\Program Files\SlikSvn\bin;C:\Program Files\TortoiseSVN\bin;C:\Program Files (x86)\QuickTime\QTSystem\;C:\Program Files\Java\jdk1.7.0_45\bin;C:\SocketeQ\windowsandroid_root\system\bin;C:\SocketeQ\windowsandroid_root\system\lib
USERNAME=Yannick
OS=Windows_NT
PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 58 Stepping 9, GenuineIntel



---------------  S Y S T E M  ---------------

OS: Windows 8 , 64 bit Build 9200 

CPU:total 4 (4 cores per cpu, 1 threads per core) family 6 model 58 stepping 9, cmov, cx8, fxsr, mmx, sse, sse2, sse3, ssse3, sse4.1, sse4.2, popcnt, avx, aes, erms, tsc, tscinvbit, tscinv

Memory: 4k page, physical 16657204k(12636688k free), swap 16862004k(12260660k free)

vm_info: Java HotSpot(TM) 64-Bit Server VM (24.45-b08) for windows-amd64 JRE (1.7.0_45-b18), built on Oct  8 2013 05:47:22 by "java_re" with unknown MS VC++:1600

time: Fri May 16 17:21:29 2014
elapsed time: 0 seconds

Hier ist der Quellcode von der App:

activity_main.xml

<RelativeLayout xmlns:android="" <-- Hier waren Links drin...
    xmlns:tools=""
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:paddingBottom="@dimen/activity_vertical_margin"
    android:paddingLeft="@dimen/activity_horizontal_margin"
    android:paddingRight="@dimen/activity_horizontal_margin"
    android:paddingTop="@dimen/activity_vertical_margin"
    tools:context=".MainActivity" >

    <Button
        android:id="@+id/button1"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_alignParentRight="true"
        android:layout_alignParentTop="true"
        android:layout_marginRight="14dp"
        android:layout_marginTop="14dp"
        android:text="@string/Down"
        android:onClick="Button1" />

    <Button
        android:id="@+id/button2"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_alignLeft="@+id/button1"
        android:layout_below="@+id/button1"
        android:text="@string/Down"
        android:onClick="Button2" />

    <Button
        android:id="@+id/button3"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_alignLeft="@+id/button2"
        android:layout_below="@+id/button2"
        android:text="@string/Down"
        android:onClick="Button3" />

    <Button
        android:id="@+id/button4"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_alignLeft="@+id/button3"
        android:layout_below="@+id/button3"
        android:text="@string/Down"
        android:onClick="Button4" />

    <Button
        android:id="@+id/button5"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_alignBaseline="@+id/button1"
        android:layout_alignBottom="@+id/button1"
        android:layout_toLeftOf="@+id/button1"
        android:text="@string/Up"
        android:onClick="Button5" />

    <Button
        android:id="@+id/button6"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_alignBaseline="@+id/button2"
        android:layout_alignBottom="@+id/button2"
        android:layout_toLeftOf="@+id/button2"
        android:text="@string/Up"
        android:onClick="Button6" />

    <Button
        android:id="@+id/button7"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_alignBaseline="@+id/button3"
        android:layout_alignBottom="@+id/button3"
        android:layout_alignRight="@+id/button6"
        android:text="@string/Up"
        android:onClick="Button7" />

    <Button
        android:id="@+id/button8"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_alignLeft="@+id/button7"
        android:layout_below="@+id/button3"
        android:text="@string/Up" 
        android:onClick="Button8" />

    <Button
        android:id="@+id/button9"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_alignLeft="@+id/button8"
        android:layout_alignRight="@+id/button4"
        android:layout_below="@+id/button4"
        android:text="@string/Cancel" 
        android:onClick="Button9" />

    <TextView
        android:id="@+id/textView1"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_alignBaseline="@+id/button5"
        android:layout_alignBottom="@+id/button5"
        android:layout_toLeftOf="@+id/button5"
        android:text="@string/Label1"
        android:textAppearance="?android:attr/textAppearanceMedium" />

    <TextView
        android:id="@+id/textView2"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_alignBaseline="@+id/button6"
        android:layout_alignBottom="@+id/button6"
        android:layout_toLeftOf="@+id/button6"
        android:text="@string/Label2"
        android:textAppearance="?android:attr/textAppearanceMedium" />

    <TextView
        android:id="@+id/textView3"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_alignBaseline="@+id/button7"
        android:layout_alignBottom="@+id/button7"
        android:layout_toLeftOf="@+id/button7"
        android:text="@string/Label3"
        android:textAppearance="?android:attr/textAppearanceMedium" />

    <TextView
        android:id="@+id/textView4"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_alignBaseline="@+id/button8"
        android:layout_alignBottom="@+id/button8"
        android:layout_toLeftOf="@+id/button8"
        android:text="@string/Label4"
        android:textAppearance="?android:attr/textAppearanceMedium" />

    <TextView
        android:id="@+id/textView5"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_alignParentLeft="true"
        android:layout_alignRight="@+id/button9"
        android:layout_below="@+id/button9"
        android:background="#FFFF00"
        android:text="@string/Connection"
        android:textAppearance="?android:attr/textAppearanceLarge" />

</RelativeLayout>

MainActivity.java

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.PrintWriter;
import java.net.Socket;

import android.os.Bundle;
import android.app.Activity;
import android.graphics.Color;
import android.view.Menu;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;

public class MainActivity extends Activity {

    public volatile boolean Connection;
    // final static String IP = "localhost";
    final static String IP = "192.168.2.19";
    public TextView tw;
    public Button bt, bt1, bt2, bt3, bt4, bt5, bt6, bt7, bt8;
    private Socket Client;
    private PrintWriter writer;
    private BufferedReader reader;

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        tw = (TextView) findViewById(R.id.textView5);
        bt = (Button) findViewById(R.id.button1);
        bt1 = (Button) findViewById(R.id.button2);
        bt2 = (Button) findViewById(R.id.button3);
        bt3 = (Button) findViewById(R.id.button4);
        bt4 = (Button) findViewById(R.id.button5);
        bt5 = (Button) findViewById(R.id.button6);
        bt6 = (Button) findViewById(R.id.button7);
        bt7 = (Button) findViewById(R.id.button8);
        bt7 = (Button) findViewById(R.id.button9);

        Thread t = new Thread(new MessagesFromServerListener());
        t.start();
        Thread t2 = new Thread(new ConnectionListener());
        t2.start();
    }

    @Override
    public boolean onCreateOptionsMenu(Menu menu) {
        // Inflate the menu; this adds items to the action bar if it is present.
        getMenuInflater().inflate(R.menu.main, menu);
        return true;
    }

    public static void main(String[] args) {

    }

    public boolean connectToServer() {
        try {
            Client = new Socket("192.168.2.19", 5555);
            reader = new BufferedReader(new InputStreamReader(
                    Client.getInputStream()));
            writer = new PrintWriter(Client.getOutputStream());
            appendTextMessages("Netzwerkverbindung hergestellt");

            return true;
        } catch (Exception e) {
            appendTextMessages("Netzwerkverbindung konnte nicht hergestellt werden");
            e.printStackTrace();

            return false;
        }
    }

    public void Button1(View v) {
        send("Rolladen 1 0");
    }
    public void Button2(View v) {
        send("Rolladen 2 0");
    }
    public void Button3(View v) {
        send("Rolladen 3 0");
    }
    public void Button4(View v) {
        send("Rolladen 4 0");
    }
    public void Button5(View v) {
        send("Rolladen 1 1");
    }
    public void Button6(View v) {
        send("Rolladen 2 1");
    }
    public void Button7(View v) {
        send("Rolladen 3 1");
    }
    public void Button8(View v) {
        send("Rolladen 4 1");
    }
    public void Button9(View v) {
        send("/Abbrechen");
    }

    public void send(String s) {
        writer.println(s);
        writer.flush();
    }

    public boolean connected() {
        send("<conn>");
        Connection = false;
        int i = 0;
        while (!(Connection || i >= 5)) {
            try {
                Thread.sleep(1000);
                i++;
            } catch (InterruptedException e) {
                // TODO Auto-generated catch block
                e.printStackTrace();
            }
        }
        return Connection;
    }

    public void appendTextMessages(String message) {
        if (message.startsWith("Rolladen")) {
            String[] splittedS2 = message.split(" ", 2);
            if(splittedS2[1].equals("1 0"))
                bt.setBackgroundColor(Color.YELLOW);
            else if(splittedS2[1].equals("2 0"))
                bt1.setBackgroundColor(Color.YELLOW);
            else if(splittedS2[1].equals("3 0"))
                bt2.setBackgroundColor(Color.YELLOW);
            else if(splittedS2[1].equals("4 0"))
                bt3.setBackgroundColor(Color.YELLOW);
            else if(splittedS2[1].equals("1 1"))
                bt4.setBackgroundColor(Color.YELLOW);
            else if(splittedS2[1].equals("2 1"))
                bt5.setBackgroundColor(Color.YELLOW);
            else if(splittedS2[1].equals("3 1"))
                bt6.setBackgroundColor(Color.YELLOW);
            else if(splittedS2[1].equals("4 1"))
                bt7.setBackgroundColor(Color.YELLOW);

        } else if (message.equals("/Abbrechen")) {
            bt.setBackgroundColor((Integer) null);
            bt1.setBackgroundColor((Integer) null);
            bt2.setBackgroundColor((Integer) null);
            bt3.setBackgroundColor((Integer) null);
            bt4.setBackgroundColor((Integer) null);
            bt5.setBackgroundColor((Integer) null);
            bt6.setBackgroundColor((Integer) null);
            bt7.setBackgroundColor((Integer) null);
        }
        System.out.println(message);
    }

    public class ConnectionListener implements Runnable {

        @Override
        public void run() {
            while (true) {
                boolean connection = connected();
                setState(connection);
                try {
                    Thread.sleep(3000);
                } catch (InterruptedException e) {
                    // TODO Auto-generated catch block
                    e.printStackTrace();
                }
            }
        }

    }

    private void setState(boolean b) {
        if (b == true) {
            tw.setText("CONNECTED");
            tw.setBackgroundColor(android.graphics.Color.GREEN);
        } else {
            tw.setText("CONNECTION LOST");
            tw.setBackgroundColor(android.graphics.Color.RED);
            tw.setTextColor(android.graphics.Color.WHITE);
        }
    }

    public class MessagesFromServerListener implements Runnable {

        @Override
        public void run() {
            String message;

            try {
                while ((message = reader.readLine()) != null) {
                    if (message.equals("<conn>")) {
                        Connection = true;
                    }
                    appendTextMessages(message);

                }
            } catch (IOException e) {
                appendTextMessages("Nachricht konnte nicht empfangen werden!");
                e.printStackTrace();
            }
        }

    }
}

Ich hoffe jemand kann mir dabei helfen
LG Yannick

Antworten
Pascal P.
  • Admin
  • Forum-Beiträge: 11.286

16.05.2014, 19:13:51 via Website

Kannst du die App auf dem Emulator installieren?

LG Pascal //It's not a bug, it's a feature. :) ;)

Antworten
Yannick F.
  • Forum-Beiträge: 3

16.05.2014, 23:31:59 via Website

Der Emulator läuft bei mir nicht.
Und ausserdem glaub ich dass er noch nicht mal bis zum installieren gekommen ist...
Ich denke er ist beim Compilieren gescheitert

Antworten
Pascal P.
  • Admin
  • Forum-Beiträge: 11.286

17.05.2014, 07:41:45 via Website

Vielleicht solltest du deine Layouts auf Richtigkeit überprüfen, zb. ob die XML Tags alle zu gehen, weil:

fatal error: Invalid layout of preloaded class

PS: Vlt mal nur ein Leeres Projekt erstellen und versuchen ob du dieses installieren kannst.
Hat die App schonmal funktioniert?

— geändert am 17.05.2014, 07:42:33

LG Pascal //It's not a bug, it's a feature. :) ;)

Antworten
Yannick F.
  • Forum-Beiträge: 3

17.05.2014, 13:47:41 via Website

Naja das Layout hat ja funktioniert. Spalte
ich aber die Programmierung rein kopiere geht's nicht mehr.

Antworten
Pascal P.
  • Admin
  • Forum-Beiträge: 11.286

17.05.2014, 14:07:45 via Website

Überprüfe mal die Klammern, ob alle offenen auch wieder zu gehen.

LG Pascal //It's not a bug, it's a feature. :) ;)

Antworten