Android import dalvik.system.VMRuntime

本文解决了在Eclipse中安装Android项目后出现的Dalvik系统VMRuntime导入问题。通过调整Eclipse的Java编译器设置来修复错误。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

After einstalled eclipse a project showed a problem:Android import dalvik.system.VMRuntime

 

How to solve it:

 

eclipse -> windows -> perference -> JAVA -> complier -> Configure Sepecific Setting

 

 

D Shutting down VM 2025-06-06 08:58:56.216 29574-29574 AndroidRuntime com.example.kucun2 E FATAL EXCEPTION: main Process: com.example.kucun2, PID: 29574 androidx.fragment.app.Fragment$InstantiationException: Unable to instantiate fragment com.example.kucun2.fragments.OrderDisplayFragment: make sure class name exists at androidx.fragment.app.FragmentFactory.loadFragmentClass(FragmentFactory.java:97) at androidx.fragment.app.Fragment.instantiate(Fragment.java:670) at androidx.fragment.app.FragmentContainer.instantiate(FragmentContainer.java:57) at androidx.fragment.app.FragmentManager$3.instantiate(FragmentManager.java:525) at androidx.navigation.fragment.FragmentNavigator.createFragmentTransaction(FragmentNavigator.kt:394) at androidx.navigation.fragment.FragmentNavigator.navigate(FragmentNavigator.kt:329) at androidx.navigation.fragment.FragmentNavigator.navigate(FragmentNavigator.kt:308) at androidx.navigation.NavController.navigateInternal(NavController.kt:265) at androidx.navigation.NavController.navigate(NavController.kt:1832) at androidx.navigation.NavController.navigate(NavController.kt:1668) at androidx.navigation.NavController.navigate(NavController.kt:1595) at androidx.navigation.ui.NavigationUI.onNavDestinationSelected(NavigationUI.kt:96) at androidx.navigation.ui.NavigationUI.setupWithNavController$lambda$3(NavigationUI.kt:476) at androidx.navigation.ui.NavigationUI.$r8$lambda$BjnX4GnGzOVkMyDjMUkrTEr9dSk(Unknown Source:0) at androidx.navigation.ui.NavigationUI$$ExternalSyntheticLambda5.onNavigationItemSelected(D8$$SyntheticClass:0) at com.google.android.material.navigation.NavigationView$2.onMenuItemSelected(NavigationView.java:331) at androidx.appcompat.view.menu.MenuBuilder.dispatchMenuItemSelected(MenuBuilder.java:836) at androidx.appcompat.view.menu.MenuItemImpl.invoke(MenuItemImpl.java:159) at androidx.appcompat.view.menu.MenuBuilder.performItemAction(MenuBuilder.java:987) at com.google.android.material.internal.NavigationMenuPresenter$1.onClick(NavigationMenuPresenter.java:506) at android.view.View.performClick(View.java:8166) at android.view.View.performClickInternal(View.java:8143) at android.view.View.-$$Nest$mperformClickInternal(Unknown Source:0) at android.view.View$PerformClick.run(View.java:32198) at android.os.Handler.handleCallback(Handler.java:1014) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loopOnce(Looper.java:250) at android.os.Looper.loop(Looper.java:340) at android.app.ActivityThread.main(ActivityThread.java:9913) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:621) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:957) Caused by: java.lang.ClassNotFoundException: com.example.kucun2.fragments.OrderDisplayFragment at java.lang.Class.classForName(Native Method) at java.lang.Class.forName(Class.java:607) at androidx.fragment.app.FragmentFactory.loadClass(FragmentFactory.java:53) at androidx.fragment.app.FragmentFactory.loadFragmentClass(FragmentFactory.java:94) ... 31 more Caused by: java.lang.ClassNotFoundException: Didn't find class "com.example.kucun2.fragments.OrderDisplayFragment" on path: DexPathList[[zip file "/data/app/~~zaOweDqmIa3I1rXy5NxwNQ==/com.example.kucun2-uQxPAZIa6ms4RM6DGKLTmA==/base.apk"],nativeLibraryDirectories=[/data/app/~~zaOweDqmIa3I1rXy5NxwNQ==/com.example.kucun2-uQxPAZIa6ms4RM6DGKLTmA==/lib/arm64, /system/lib64, /system_ext/lib64]] at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:259) at java.lang.ClassLoader.loadClass(ClassLoader.java:637) at java.lang.ClassLoader.loadClass(ClassLoader.java:573) ... 35 more 2025-06-06 08:58:56.241 29574-29574 Process com.example.kucun2 I Sending signal. PID: 29574 SIG: 9
06-07
package com.taixin.txallremote.jni; import com.taixin.txallremote.utils.ALog; public final class H6RemoteIO { private static final String TAG = "H6RemoteIO"; private static final String libSoName = "txporting-i2c"; static { ALog.i(TAG, "load library: lib" + libSoName + ".so"); System.loadLibrary(libSoName); } public static void remoteOpen() { ALog.i(TAG, "txallremote init"); TxAllRemote_Init(); } public static void remoteLearnStart() { TxAllRemote_LearnStart(); } public static byte remoteReadData(byte[] buf, int count) { byte ack; ack = TxAllRemote_ReadData(buf, count); ALog.i(TAG, "ack:" + ack); return ack; } public static byte remoteWriteData(byte[] buf, int count) { byte ack; ack = TxAllRemote_WriteData(buf, count); return ack; } private static native void TxAllRemote_Init(); private static native void TxAllRemote_LearnStart(); private static native byte TxAllRemote_ReadData(byte[] paramArrayOfByte, int paramInt); private static native byte TxAllRemote_WriteData(byte[] paramArrayOfByte, int paramInt); } 07-23 08:31:32.909 22259 22282 D libEGL : loaded /system/lib64/egl/libEGL_emulation.so 07-23 08:31:32.910 22259 22259 I txallremote-H6RemoteIO: load library: libtxporting-i2c.so 07-23 08:31:32.929 22259 22259 D AndroidRuntime: Shutting down VM 07-23 08:31:32.929 22259 22282 I nemucooker: cook file1: /etc/mumu-configs/renderer.config, last modify time: Thu Aug 29 11:22:45 2024 07-23 08:31:32.929 22259 22282 I nemucooker: cook file2: /data/system/etc/mumu-configs/renderer.config, last modify time: Thu Jul 17 21:45:34 2025 07-23 08:31:32.929 22259 22282 I nemucooker: cook select file: /data/system/etc/mumu-configs/renderer.config 07-23 08:31:32.940 22259 22259 E AndroidRuntime: FATAL EXCEPTION: main 07-23 08:31:32.940 22259 22259 E AndroidRuntime: Process: com.taixin.txallremote, PID: 22259 07-23 08:31:32.940 22259 22259 E AndroidRuntime: java.lang.UnsatisfiedLinkError: dlopen failed: library "libtxporting-i2c.so" not found 07-23 08:31:32.940 22259 22259 E AndroidRuntime: at java.lang.Runtime.loadLibrary0(Runtime.java:1086) 07-23 08:31:32.940 22259 22259 E AndroidRuntime: at java.lang.Runtime.loadLibrary0(Runtime.java:1006) 07-23 08:31:32.940 22259 22259 E AndroidRuntime: at java.lang.System.loadLibrary(System.java:1656) 07-23 08:31:32.940 22259 22259 E AndroidRuntime: at com.taixin.txallremote.jni.H6RemoteIO.<clinit>(H6RemoteIO.java:12) 07-23 08:31:32.940 22259 22259 E AndroidRuntime: at com.taixin.txallremote.jni.H6RemoteIO.remoteOpen(Unknown Source:0) 07-23 08:31:32.940 22259 22259 E AndroidRuntime: at com.taixin.txallremote.dataway.RemoteDirectIo.getInstance(RemoteDirectIo.java:27) 07-23 08:31:32.940 22259 22259 E AndroidRuntime: at com.taixin.txallremote.activity.TempHumiControlManagerActivity.onCreate(TempHumiControlManagerActivity.java:81) 07-23 08:31:32.940 22259 22259 E AndroidRuntime: at android.app.Activity.performCreate(Activity.java:8054) 07-23 08:31:32.940 22259 22259 E AndroidRuntime: at android.app.Activity.performCreate(Activity.java:8034) 07-23 08:31:32.940 22259 22259 E AndroidRuntime: at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1347) 07-23 08:31:32.940 22259 22259 E AndroidRuntime: at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3736) 07-23 08:31:32.940 22259 22259 E AndroidRuntime: at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3931) 07-23 08:31:32.940 22259 22259 E AndroidRuntime: at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:103) 07-23 08:31:32.940 22259 22259 E AndroidRuntime: at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135) 07-23 08:31:32.940 22259 22259 E AndroidRuntime: at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95) 07-23 08:31:32.940 22259 22259 E AndroidRuntime: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2294) 07-23 08:31:32.940 22259 22259 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:106) 07-23 08:31:32.940 22259 22259 E AndroidRuntime: at android.os.Looper.loopOnce(Looper.java:201) 07-23 08:31:32.940 22259 22259 E AndroidRuntime: at android.os.Looper.loop(Looper.java:288) 07-23 08:31:32.940 22259 22259 E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:8060) 07-23 08:31:32.940 22259 22259 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method) 07-23 08:31:32.940 22259 22259 E AndroidRuntime: at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:571) 07-23 08:31:32.940 22259 22259 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1091) 07-23 08:31:32.945 22259 22282 D libEGL : loaded /system/lib64/egl/libGLESv1_CM_emulation.so 07-23 08:31:32.946 22259 22282 D libEGL : loaded /system/lib64/egl/libGLESv2_emulation.so 07-23 08:31:32.961 22259 22282 E GraphicsEnv: Failed to get gpu service 07-23 08:31:33.000 22259 22259 I Process : Sending signal. PID: 22259 SIG: 9 07-23 08:31:33.025 1251 10643 I ActivityManager: Process com.taixin.txallremote (pid 22259) has died: fg TOP 07-23 08:31:33.025 1054 1054 I Zygote : Process 22259 exited due to signal 9 (Killed) 07-23 08:31:33.025 1251 1291 I libprocessgroup: Successfully killed process cgroup uid 10111 pid 22259 in 0ms 07-23 08:31:40.589 1091 1091 D opengl-gc: Check pid 22259: running 0
最新发布
07-24
Android虚拟机Dalvik完整源码,宝贵资源,欢迎下载! This directory contains the Dalvik virtual machine and core class library, as well as related tools, libraries, and tests. A note about the licenses and header comments --------------------------------------------- Much of the code under this directory originally came from the Apache Harmony project, and as such contains the standard Apache header comment. Some of the code was written originally for the Android project, and as such contains the standard Android header comment. Some files contain code from both projects. In these cases, the header comment is a combination of the other two, and the portions of the code from Harmony are identified as indicated in the comment. Here is the combined header comment: /* * Copyright (C) The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * * ---------- * * Portions of the code surrounded by "// BEGIN Harmony code" and * "// END Harmony code" are copyrighted and licensed separately, as * follows: * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ Native SH call bridge --------------------- Native SH call bridge is written by Shin-ichiro KAWASAKI and Contributed to Android by Hitachi, Ltd. and Renesas Solutions Corp.
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值