当我尝试在手机或模拟器中运行我的应用时,它无法启动。 Gradle Build没有消息。这是Android监视器中显示的内容:
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中
<?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
<?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>
我没有drawable,我没有触及这两者之外的任何其他XML。 提前谢谢!
答案 0 :(得分:0)
这是答案。
Rect someRect;`
public void someClass () {
someRect.set(l,t,r,b);
在代码的某些部分,我忘了将“new Rect”赋给Rect变量。愚蠢的我。
非常感谢