AdMob - erro ao add pacote Android #282
-
===================================== Português (native language): Warning Fiz os seguintes passos anteriores até chegar neste erro:
Alguém consegue me ajudar? ===================================== English (google translate): Warning I followed the previous steps until I got this error:
Can anyone help me? |
Beta Was this translation helpful? Give feedback.
Replies: 7 comments 4 replies
-
I had inadvertently included the .R.jar in the demo project, which would have prevented performing the first deployment (which is what the error is about). If you update Kastri from the repository now, you should be able to deploy once, before adding the package as you have been trying to do. |
Beta Was this translation helpful? Give feedback.
-
You will still need to create it in order for the AdMob support to work |
Beta Was this translation helpful? Give feedback.
-
If they do not show, there should be messages in the memo displaying an error. If not, something else is going wrong - if so, can you change the extension of your .apk file to .zip, and attach it here? |
Beta Was this translation helpful? Give feedback.
-
yes. |
Beta Was this translation helpful? Give feedback.
-
Sorry, I had not realised that you had changed the demo. If you revert the code back to the original demo, and just change this line: AdMob.RequestConsent; to this: AdMob.RequestConsent(True); // Bypasses consent requirements ..and when you run the demo, click the |
Beta Was this translation helpful? Give feedback.
-
You have not shown the relevant part of the manifest. It should look like this: <%application-meta-data%>
<meta-data
android:name="com.google.android.gms.ads.APPLICATION_ID"
android:value="ca-app-pub-NNNNNNNNNNNNN~7163712683"/> (I have obscured parts of my application id) If you have configured this correctly, check that you have provided all relevant information to Admob: https://admob.google.com/v2/home?pli=1 |
Beta Was this translation helpful? Give feedback.
-
That's not a full AndroidManifest.template.xml - many parts of it are missing. Perhaps attach the file here.
It will give that error if your AndroidManifest.template.xml is not correct |
Beta Was this translation helpful? Give feedback.
I had inadvertently included the .R.jar in the demo project, which would have prevented performing the first deployment (which is what the error is about). If you update Kastri from the repository now, you should be able to deploy once, before adding the package as you have been trying to do.