내 애플은 minSdk = 21을 가지고 바로 가기 targetSdk = 26안드로이드 - 오류 응용 프로그램을 추가하는 동안은
내가의 첫 번째 활동에 <meta-data>
태그를 추가 한 응용 프로그램 바로 가기
<activity android:name=".SignInActivity"
android:theme="@style/SubscriptionsTheme.NoActionBar">
<intent-filter>
<category android:name="android.intent.category.LAUNCHER" />
<action android:name="android.intent.action.MAIN"/>
</intent-filter>
<meta-data android:name="android.app.shortcuts" android:resource="@xml/shortcuts"/>
</activity>
는 다음 나는
xml-v25
디렉토리를 만들고 그 안에이
shortcuts.xml
파일 : 나는 다음과 같은 오류가 얻을 응용 프로그램 빌드 할 때
<shortcuts xmlns:android="http://schemas.android.com/apk/res/android" >
<shortcut
android:shortcutId="test"
android:icon="@drawable/plus"
android:shortcutShortLabel="test"
android:shortcutLongLabel="long test" >
<intent
android:action="android.intent.action.VIEW"
android:targetPackage="com.xxxxx.xxxxx.xxxxx"
android:targetClass="com.xxxxx.xxxxx.xxxxxx.main" />
</shortcut>
</shortcuts>
가 :
Error:error: 'long test' is incompatible with attribute android:shortcutLongLabel (attr) reference. Error:error: 'test' is incompatible with attribute android:shortcutShortLabel (attr) reference. Error:'long test' is incompatible with attribute android:shortcutLongLabel (attr) reference.
문자열 리소스 – Zoe