我正在开发一个基本的AndroidRadar应用,但是当我运行代码时,下面却出现多个错误
错误
错误:XML或文本声明不在实体的开头。空
java.util.concurrent.ExecutionException: com.android.builder.internal.aapt.v2.Aapt2Exception:AAPT2错误: 检查日志以获取详细信息
com.android.build.gradle.tasks.ResourceException:错误: java.util.concurrent.ExecutionException: com.android.builder.internal.aapt.v2.Aapt2Exception:AAPT2错误: 检查日志以获取详细信息错误: java.util.concurrent.ExecutionException: com.android.builder.internal.aapt.v2.Aapt2Exception:AAPT2错误: 检查日志以获取详细信息java.util.concurrent.ExecutionException: java.util.concurrent.ExecutionException: com.android.builder.internal.aapt.v2.Aapt2Exception:AAPT2错误: 查看日志以获取详细信息
我已经尝试了StackOverflow的所有答案,但仍然给出错误 我实现了雷达的xml activity_main.xml文件下面的
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
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">
<it.smasini.radar.RadarView
app:load_async_image="true"
app:center_pin_color="#00FFFFFF"
app:background_color="#00FFFFFF"
app:arrow_color="#4CAF50"
app:pins_radius="100"
android:id="@+id/radar_view"
app:radar_background="@drawable/radar_background"
android:layout_width="match_parent"
android:layout_height="wrap_content"/>
</RelativeLayout>