首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >发布正在运行的应用程序(W/art: Failed )

发布正在运行的应用程序(W/art: Failed )
EN

Stack Overflow用户
提问于 2017-04-28 19:25:59
回答 1查看 2.5K关注 0票数 0

当我试图在手机或模拟器中运行我的应用程序时,它不会启动。没有来自Gradle构建的消息。这就是Android监视器中显示的内容:

代码语言:javascript
复制
04-28 20:04:11.651 21225-21225/? I/art: Late-enabling -Xcheck:jni
04-28 20:04:11.818 21225-21225/com.funfeast.hollowlightultimaversao W/art: Failed execv(/system/bin/dex2oat --runtime-arg -classpath --runtime-arg  --debuggable --instruction-set=arm64 --instruction-set-features=smp,a53 --runtime-arg -Xrelocate --boot-image=/system/framework/boot.art --runtime-arg -Xms64m --runtime-arg -Xmx512m --instruction-set-variant=generic --instruction-set-features=default --dex-file=/data/app/com.funfeast.hollowlightultimaversao-2/split_lib_dependencies_apk.apk --oat-file=/data/dalvik-cache/arm64/data@app@com.funfeast.hollowlightultimaversao-2@split_lib_dependencies_apk.apk@classes.dex) because non-0 exit status
04-28 20:04:11.889 21225-21225/com.funfeast.hollowlightultimaversao W/art: Failed execv(/system/bin/dex2oat --runtime-arg -classpath --runtime-arg  --debuggable --instruction-set=arm64 --instruction-set-features=smp,a53 --runtime-arg -Xrelocate --boot-image=/system/framework/boot.art --runtime-arg -Xms64m --runtime-arg -Xmx512m --instruction-set-variant=generic --instruction-set-features=default --dex-file=/data/app/com.funfeast.hollowlightultimaversao-2/split_lib_slice_0_apk.apk --oat-file=/data/dalvik-cache/arm64/data@app@com.funfeast.hollowlightultimaversao-2@split_lib_slice_0_apk.apk@classes.dex) because non-0 exit status
04-28 20:04:11.955 21225-21225/com.funfeast.hollowlightultimaversao W/art: Failed execv(/system/bin/dex2oat --runtime-arg -classpath --runtime-arg  --debuggable --instruction-set=arm64 --instruction-set-features=smp,a53 --runtime-arg -Xrelocate --boot-image=/system/framework/boot.art --runtime-arg -Xms64m --runtime-arg -Xmx512m --instruction-set-variant=generic --instruction-set-features=default --dex-file=/data/app/com.funfeast.hollowlightultimaversao-2/split_lib_slice_1_apk.apk --oat-file=/data/dalvik-cache/arm64/data@app@com.funfeast.hollowlightultimaversao-2@split_lib_slice_1_apk.apk@classes.dex) because non-0 exit status
04-28 20:04:12.016 21225-21225/com.funfeast.hollowlightultimaversao W/art: Failed execv(/system/bin/dex2oat --runtime-arg -classpath --runtime-arg  --debuggable --instruction-set=arm64 --instruction-set-features=smp,a53 --runtime-arg -Xrelocate --boot-image=/system/framework/boot.art --runtime-arg -Xms64m --runtime-arg -Xmx512m --instruction-set-variant=generic --instruction-set-features=default --dex-file=/data/app/com.funfeast.hollowlightultimaversao-2/split_lib_slice_2_apk.apk --oat-file=/data/dalvik-cache/arm64/data@app@com.funfeast.hollowlightultimaversao-2@split_lib_slice_2_apk.apk@classes.dex) because non-0 exit status
04-28 20:04:12.076 21225-21225/com.funfeast.hollowlightultimaversao W/art: Failed execv(/system/bin/dex2oat --runtime-arg -classpath --runtime-arg  --debuggable --instruction-set=arm64 --instruction-set-features=smp,a53 --runtime-arg -Xrelocate --boot-image=/system/framework/boot.art --runtime-arg -Xms64m --runtime-arg -Xmx512m --instruction-set-variant=generic --instruction-set-features=default --dex-file=/data/app/com.funfeast.hollowlightultimaversao-2/split_lib_slice_3_apk.apk --oat-file=/data/dalvik-cache/arm64/data@app@com.funfeast.hollowlightultimaversao-2@split_lib_slice_3_apk.apk@classes.dex) because non-0 exit status
04-28 20:04:12.134 21225-21225/com.funfeast.hollowlightultimaversao W/art: Failed execv(/system/bin/dex2oat --runtime-arg -classpath --runtime-arg  --debuggable --instruction-set=arm64 --instruction-set-features=smp,a53 --runtime-arg -Xrelocate --boot-image=/system/framework/boot.art --runtime-arg -Xms64m --runtime-arg -Xmx512m --instruction-set-variant=generic --instruction-set-features=default --dex-file=/data/app/com.funfeast.hollowlightultimaversao-2/split_lib_slice_4_apk.apk --oat-file=/data/dalvik-cache/arm64/data@app@com.funfeast.hollowlightultimaversao-2@split_lib_slice_4_apk.apk@classes.dex) because non-0 exit status
04-28 20:04:12.194 21225-21225/com.funfeast.hollowlightultimaversao W/art: Failed execv(/system/bin/dex2oat --runtime-arg -classpath --runtime-arg  --debuggable --instruction-set=arm64 --instruction-set-features=smp,a53 --runtime-arg -Xrelocate --boot-image=/system/framework/boot.art --runtime-arg -Xms64m --runtime-arg -Xmx512m --instruction-set-variant=generic --instruction-set-features=default --dex-file=/data/app/com.funfeast.hollowlightultimaversao-2/split_lib_slice_5_apk.apk --oat-file=/data/dalvik-cache/arm64/data@app@com.funfeast.hollowlightultimaversao-2@split_lib_slice_5_apk.apk@classes.dex) because non-0 exit status
04-28 20:04:12.254 21225-21225/com.funfeast.hollowlightultimaversao W/art: Failed execv(/system/bin/dex2oat --runtime-arg -classpath --runtime-arg  --debuggable --instruction-set=arm64 --instruction-set-features=smp,a53 --runtime-arg -Xrelocate --boot-image=/system/framework/boot.art --runtime-arg -Xms64m --runtime-arg -Xmx512m --instruction-set-variant=generic --instruction-set-features=default --dex-file=/data/app/com.funfeast.hollowlightultimaversao-2/split_lib_slice_6_apk.apk --oat-file=/data/dalvik-cache/arm64/data@app@com.funfeast.hollowlightultimaversao-2@split_lib_slice_6_apk.apk@classes.dex) because non-0 exit status
04-28 20:04:12.315 21225-21225/com.funfeast.hollowlightultimaversao W/art: Failed execv(/system/bin/dex2oat --runtime-arg -classpath --runtime-arg  --debuggable --instruction-set=arm64 --instruction-set-features=smp,a53 --runtime-arg -Xrelocate --boot-image=/system/framework/boot.art --runtime-arg -Xms64m --runtime-arg -Xmx512m --instruction-set-variant=generic --instruction-set-features=default --dex-file=/data/app/com.funfeast.hollowlightultimaversao-2/split_lib_slice_7_apk.apk --oat-file=/data/dalvik-cache/arm64/data@app@com.funfeast.hollowlightultimaversao-2@split_lib_slice_7_apk.apk@classes.dex) because non-0 exit status
04-28 20:04:12.374 21225-21225/com.funfeast.hollowlightultimaversao W/art: Failed execv(/system/bin/dex2oat --runtime-arg -classpath --runtime-arg  --debuggable --instruction-set=arm64 --instruction-set-features=smp,a53 --runtime-arg -Xrelocate --boot-image=/system/framework/boot.art --runtime-arg -Xms64m --runtime-arg -Xmx512m --instruction-set-variant=generic --instruction-set-features=default --dex-file=/data/app/com.funfeast.hollowlightultimaversao-2/split_lib_slice_8_apk.apk --oat-file=/data/dalvik-cache/arm64/data@app@com.funfeast.hollowlightultimaversao-2@split_lib_slice_8_apk.apk@classes.dex) because non-0 exit status
04-28 20:04:12.434 21225-21225/com.funfeast.hollowlightultimaversao W/art: Failed execv(/system/bin/dex2oat --runtime-arg -classpath --runtime-arg  --debuggable --instruction-set=arm64 --instruction-set-features=smp,a53 --runtime-arg -Xrelocate --boot-image=/system/framework/boot.art --runtime-arg -Xms64m --runtime-arg -Xmx512m --instruction-set-variant=generic --instruction-set-features=default --dex-file=/data/app/com.funfeast.hollowlightultimaversao-2/split_lib_slice_9_apk.apk --oat-file=/data/dalvik-cache/arm64/data@app@com.funfeast.hollowlightultimaversao-2@split_lib_slice_9_apk.apk@classes.dex) because non-0 exit status
04-28 20:04:12.437 21225-21225/com.funfeast.hollowlightultimaversao W/System: ClassLoader referenced unknown path: /data/app/com.funfeast.hollowlightultimaversao-2/lib/arm64
04-28 20:04:12.444 21225-21225/com.funfeast.hollowlightultimaversao I/InstantRun: starting instant run server: is main process
04-28 20:04:12.866 21225-21225/com.funfeast.hollowlightultimaversao I/Process: Sending signal. PID: 21225 SIG: 9

以下是我的XML文件,因为大部分编码都是用Java编写的,所以我几乎没有碰过这些文件。

activity_main.xml

代码语言:javascript
复制
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:id="@+id/activity_main"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    tools:context="com.funfeast.hollowlightultimaversao.MainActivity">
</RelativeLayout>

AndroidManifest.xml

代码语言:javascript
复制
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.funfeast.hollowlightultimaversao">

    <application
        android:allowBackup="true"
        android:icon="@mipmap/ic_launcher"
        android:label="@string/app_name"
        android:roundIcon="@mipmap/ic_launcher_round"
        android:supportsRtl="true"
        android:theme="@style/AppTheme">
        <activity android:name=".MainActivity">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />

                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
    </application>

</manifest>

我没有任何绘图,而且除了这两个XML之外,我没有接触任何其他XML。提前感谢!

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2017-04-29 13:08:29

这是答案。

代码语言:javascript
复制
Rect someRect;`
public void someClass () {
     someRect.set(l,t,r,b);

在代码的某些部分,我忘记给Rect变量赋值"new“。愚弄我。

无论如何,谢谢

票数 -1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/43687566

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档