1)每当我运行我的代码时,“。”标记“action”中的appwidget.action之间变成“,”。是什么导致了这个问题?谁能帮我 ?包名称中的句号被逗号替换
运行代码之前,
<receiver android:name="com.example.newstart.practice.Widget" >
<intent-filter>
<action android:name="android.appwidget.action.APPWIDGET_UPDATE"/>
</intent-filter>
<meta-data
android:name="android.appwidget.provider"
android:resource="@xml/widget_stuff" />
</receiver>
运行的代码,
<receiver android:name="com.example.newstart.practice.Widget" >
<intent-filter>
<action android:name="android.appwidget,action.APPWIDGET_UPDATE"/>
</intent-filter>
<meta-data
android:name="android.appwidget.provider"
android:resource="@xml/widget_stuff" />
</receiver>
它会自动切换到 “” 并显示我的错误后:
Error:(228) Tag <action> attribute name has invalid character ','
2)并且在此错误下,还显示此错误 -
Error:Execution failed for task ':app:processDebugResources'. com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'C:\Users\ASUS\AppData\Local\Android\sdk\build-tools\23.0.3\aapt.exe'' finished with non-zero exit value 1
你用什么代码运行? –
android studio! –