【问题标题】:No resource identifier found for attribute 'depurables' in package 'android'在包“android”中找不到属性“depurables”的资源标识符
【发布时间】:2016-01-28 00:58:49
【问题描述】:

我完成了我的应用程序的开发,但是当我尝试生成一个单独的 APK Android Studio 时显示:

错误:(11) 在包 'android' 中找不到属性 'depurables' 的资源标识符

我删除了android:depurables="true"(我知道我应该把标识符放在那里,但我想试试)但 Android Studio 又把它放在了AndroidManifest.xml

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="mosaicogeek.skintigth.learning.vochostest"
    android:versionCode="5"
    android:versionName="Beta 2" >

    <uses-sdk
        android:minSdkVersion="21"
        android:targetSdkVersion="21" />

    <application
        android:allowBackup="true"
        android:depurables="false"
        android:icon="@mipmap/ic_launcher"
        android:label="Vochos"
        android:supportsRtl="true"
        android:theme="@style/AppTheme" >
        <activity android:name="mosaicogeek.skintigth.learning.vochostest.MainActivity" >
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />

                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
        <activity
            android:name="android.support.v7.widget.TestActivity"
            android:label="RecyclerViewTestActivity" />
    </application>

</manifest>

【问题讨论】:

  • 我尝试在&lt;aplication 下添加android:debuggable="true" 但Android Studio 将其删除

标签: android android-studio


【解决方案1】:

没有一个名为 depurables 的属性,这就是您收到该错误的原因。我怀疑 Android Studio 会自动将其添加回清单中。在你的项目中找到所有出现的“depurables”,看看你是否得到了正在发生的事情的提示。编辑-->查找-->在路径中查找

【讨论】:

  • thanx 这行得通!,我读到我应该在生成 singed 之前将 android:depurables="false" 放入清单中
猜你喜欢
  • 2011-07-12
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多