Error in Manifest after copy-paste code from google samples

匆匆过客 提交于 2019-12-13 05:52:44

问题


I want to add Google Analytics to my app. I made the following changes according to instructions from google:

Code

<service android:name="com.DriverNotes.AndroidMobileClient.GcmIntentService" />
<service android:name=" com.google.android.gms.analytics.CampaignTrackingService" />

but I am getting this error in the Manifest file:

Failure [INSTALL_PARSE_FAILED_MANIFEST_MALFORMED]

I tried removing the ' ' (space) symbol in ...oid:name=" com.google.androi... but after restart it returns.


回答1:


When your IDE encounters a build error in the manifest, it is probably opening the build-generated manifest file to display the error. Any edits to this file have no effect, as it will be overwritten during the next build. Make sure you edit instead the AndroidManifest.xml file located somewhere under your /src directory.



来源:https://stackoverflow.com/questions/27800916/error-in-manifest-after-copy-paste-code-from-google-samples

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!