小编Joh*_*hnK的帖子

appcompat_v7中的id @ + id/image重复abc_activity_chooser_view.xml:58

在创建apk时出现以下错误:

"重复id @ + id/image,已在此布局中定义.... abc_activity_chooser_view.xml:布局中的58(appcompat_v7)"

所以我清理它,仍然是一样的.此文件中确实存在重复的id @ + id/image:

<?xml version="1.0" encoding="utf-8"?>
<view xmlns:android="http://schemas.android.com/apk/res/android"
class="android.support.v7.internal.widget.ActivityChooserView$InnerLayout"
android:id="@+id/activity_chooser_view_content"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_gravity="center"
style="?attr/activityChooserViewStyle">

<FrameLayout
    android:id="@+id/expand_activities_button"
    android:layout_width="wrap_content"
    android:layout_height="match_parent"
    android:layout_gravity="center"
    android:focusable="true"
    android:addStatesFromChildren="true"
    android:background="?attr/actionBarItemBackground">

    <ImageView android:id="@+id/image"
        android:layout_width="32dip"
        android:layout_height="32dip"
        android:layout_gravity="center"
        android:layout_marginTop="2dip"
        android:layout_marginBottom="2dip"
        android:layout_marginLeft="12dip"
        android:layout_marginRight="12dip"
        android:scaleType="fitCenter"
        android:adjustViewBounds="true" />

</FrameLayout>

<FrameLayout
    android:id="@+id/default_activity_button"
    android:layout_width="wrap_content"
    android:layout_height="match_parent"
    android:layout_gravity="center"
    android:focusable="true"
    android:addStatesFromChildren="true"
    android:background="?attr/actionBarItemBackground">

    <ImageView android:id="@+id/image"
        android:layout_width="32dip"
        android:layout_height="32dip"
        android:layout_gravity="center"
        android:layout_marginTop="2dip"
        android:layout_marginBottom="2dip"
        android:layout_marginLeft="12dip"
        android:layout_marginRight="12dip"
        android:scaleType="fitCenter"
        android:adjustViewBounds="true" />

  </FrameLayout>

</view>
Run Code Online (Sandbox Code Playgroud)

有关如何处理这个问题的任何想法?显然我不能只重命名它.我可以跳过在Lint中检查它,但错误仍然存​​在,我不认为这是最好的解决方案.更可靠的解决方案?

android android-appcompat

7
推荐指数
1
解决办法
1543
查看次数

Google Play 付费应用定义

我无法在Google的帮助中找到明确的回复。

应用程序免费使用。这绝对有用。此外,还可以购买订阅并获得更多应用内选项。

那么这个应用程序是付费的还是免费的?

据我了解是付费的。但是,当我在开发者控制台中选择“付费”选项时,它会要求提供应用程序的价格。但应用程序本身是免费使用的。

那么我应该输入什么价格?

还是免费的?

android subscription

0
推荐指数
1
解决办法
722
查看次数

标签 统计

android ×2

android-appcompat ×1

subscription ×1