开发者

How to get google ads sdk to work in Intellij?

Silly question (noob here) but the tag below in AndroidManifest.xml doesnt work in IntelliJ. The开发者_如何学Go app compiles successfully but crashes on launch. This manifest file works fine in Eclipse. I added the googleadmob*.jar file in the sdk part of the project structure settings.

<activity
android:name="com.google.ads.AdActivity" 
...

</activity>


The problem is that you've added the jar to the SDK. It must be configured as a module library instead, refer to the documentation. In this case it will be packaged with your application, while SDK is not packaged as it's already available on the device.

If the class is still shown in red in the editor, try File | Invalidate Caches.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜