Software Archive
Read-only legacy content

You can temporarily disable this error with android.enforceUniquePackageName=false

Leonidas_S_
New Contributor I
2,341 Views

I get below during Android build… I have Admob and Google Analytics Plugins, and some others... I build using XDK... what to do?

FAILURE: Build failed with an exception.

* What went wrong:

Execution failed for task ':processReleaseResources'.

> Error: more than one library with package name 'com.google.android.gms'

  You can temporarily disable this error with android.enforceUniquePackageName=false

  However, this is temporary and will be enforced in 1.0

* Try:

Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

Total time: 10.2 secs

 

0 Kudos
13 Replies
Leonidas_S_
New Contributor I
2,341 Views

https://github.com/danwilson/google-analytics-plugin

removed this and compiled correctly... well if want admob and analytics by Google - what have to do????

0 Kudos
Anusha_M_Intel1
Employee
2,341 Views

It looks like a particular library is duplicated in both plugins causing the build failure. I will report this to engineering to see if something can be done on our side. 

The alternative admob plugin by floatinghotspot also seems to the failing with the same error. 

0 Kudos
Leonidas_S_
New Contributor I
2,341 Views

Please notify here,.... when you fix bug...

may fork plugin in github and modify it in my account?

 

Another matter

these admob banner ads designed for games... ? I found that if my page scrolls... in other words is not a game and is not fit in the viewport, REQUIRES SCROLLER, BANNER is not fixed like a fixed to bottom nav bar in Bootstrap, in case if scroll half way banner moves to the middle of screen hiding content... well?

0 Kudos
Anusha_M_Intel1
Employee
2,341 Views

No. I have tested admob on non-game apps several times and have not encountered the kind of behavior you are seeing. It should be a fixed banner at the bottom. Check out the Hello Admob plugin that ships with the XDK. You will see how it should look. Build app and test on phone. The sample is not compatible with Windows at the moment. 

0 Kudos
Leonidas_S_
New Contributor I
2,341 Views

this is corrected code for fixed bottom banner? May my problem is due to Bootstrap 3.3.5 used and have two nav bar fixed - one on top and one on bottom...? Or...

            var bannerAdUnit = "ca-app-pub-000000000000000";
            var interstitialAdUnit = "ca-app-pub-000000000000000";
            var isOverlap = true; //true: overlap, false: split
            var isTest = false;

            window.admob.setUp(bannerAdUnit, interstitialAdUnit, isOverlap, isTest);
        
            
            window.admob.showBannerAd('bottom-center','SMART_BANNER');

 

0 Kudos
Leonidas_S_
New Contributor I
2,341 Views

I will test sample from XDK for admob

You fixed PLUGIN CONFLICT... ? If not when you will do so...?

0 Kudos
Anusha_M_Intel1
Employee
2,341 Views

Engineering is looking into it Leonidas. It is also the holidays and so things will pick up in January. I can provide a better response then. 

0 Kudos
Leonidas_S_
New Contributor I
2,341 Views

OK

0 Kudos
Leonidas_S_
New Contributor I
2,341 Views

js code for Admob in xdk differs between different Plugins...?

0 Kudos
Leonidas_S_
New Contributor I
2,341 Views

Uncaught TypeError: Cannot read property 'setOptions' of undefined index.html:324

initAd index.html:324initApp index.html:296Channel.subscribe cordova.js:754document.addEventListener cordova.js:131onDocLoad index.html:287onDeviceReady index.html:247Channel.fire cordova.js:816(anonymous function) cordova.js:229

line 324

            window.plugins.AdMob.setOptions( {
                publisherId: admobid.banner,
                interstitialAdId: admobid.interstitial,
                bannerAtTop: false, // set to true, to put banner at top
                overlap: false, // set to true, to allow banner overlap webview
                offsetTopBar: false, // set to true to avoid ios7 status bar overlap
                isTesting: false, // receiving test ad
                autoShow: true // auto show interstitial ad when loaded
            });

I tried unsuccessfully (first run admob sample success app xdk) to migrate the code from this... after went here >>>

https://github.com/floatinghotpot/cordova-plugin-admob/blob/master/test/index.html  and getting error above...

is the same plugin as in origin xdk sample admob app???? I am not getting cordova alert (plugin run)choose failure/success but getting error above... well?

0 Kudos
Leonidas_S_
New Contributor I
2,341 Views
0 Kudos
Leonidas_S_
New Contributor I
2,341 Views

#9

Engineering is looking into it Leonidas. It is also the holidays and so things will pick up in January. I can provide a better response then. 

ANY NEWS FIXED...?

0 Kudos
Reply