Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

app crashes immediately on startup after install "admobpro" plugin with "pushbots" plugin #648

Open
wants to merge 20 commits into
base: master
Choose a base branch
from

Conversation

ahmedelrefaiy
Copy link

@ahmedelrefaiy ahmedelrefaiy commented Oct 12, 2018

Using Cordova V 7.1.0

1- when using "admobpro-firebase" plugin with "pushbots" plugin, build done successfully - but app didn't work. it just display message "Unfortunately, App has stopped" and exit.

2 when using "admobpro" plugin with "pushbots" plugin, build failed with this error

1>MSBUILD : cordova-build error : Execution failed for task ':transformClassesWithDexForDebug'.
1>MSBUILD : cordova-build error : > com.android.build.api.transform.TransformException: com.android.ide.common.process.ProcessException: java.util.concurrent.ExecutionException: com.android.dex.DexException: Multiple dex files define Lcom/google/android/gms/common/api/internal/zza;

@yacinknn
Copy link

I have the same problem brother what's the solution please!!!!

@ahmedelrefaiy
Copy link
Author

nothing from my side can i do brother. i still wait the owner for the solution @floatinghotpot

@cgtdev
Copy link

cgtdev commented Oct 16, 2018

Same here, app keeps crashing right after start when cordova-plugin-admobpro is installed.

Plugins installed in my project:
cordova-plugin-admobpro 2.31.6 "AdMob Plugin Pro"
cordova-plugin-app-version 0.1.9 "AppVersion"
cordova-plugin-device 2.0.2 "Device"
cordova-plugin-extension 1.5.4 "Cordova Plugin Extension"
cordova-plugin-firebase 2.0.5 "Google Firebase Plugin"
cordova-plugin-inappbrowser 3.0.0 "InAppBrowser"
cordova-plugin-insomnia 4.3.0 "Insomnia (prevent screen sleep)"
cordova-plugin-ionic-keyboard 2.1.3 "cordova-plugin-ionic-keyboard"
cordova-plugin-ionic-webview 2.2.0 "cordova-plugin-ionic-webview"
cordova-plugin-network-information 2.0.1 "Network Information"
cordova-plugin-splashscreen 5.0.2 "Splashscreen"
cordova-plugin-statusbar 2.4.2 "StatusBar"
cordova-plugin-whitelist 1.3.3 "Whitelist"
cordova-plugin-x-socialsharing 5.4.1 "SocialSharing"
es6-promise-plugin 4.2.2 "Promise"

@floatinghotpot
Copy link
Owner

floatinghotpot commented Oct 16, 2018

See the temporary solution here:
05e1dbc

in plugin.xml, change:

        <framework src="com.google.android.gms:play-services-ads:+" />

to:

        <!-- since 5.10.2018 new version of google admobs require extra things in AndroidManifest.xml, 16.0.0 is the last compatible version -->
        <!-- https://developers.google.com/admob/android/quick-start#update_your_androidmanifestxml -->
        <framework src="com.google.android.gms:play-services-ads:16.0.0" />

I will find better solution later, but you can use this one for now.

@floatinghotpot
Copy link
Owner

the plugin has been modified to resolve this issue.
try update the plugin to [email protected]

@sergip76
Copy link

Remember to edit \platforms\android\app\src\mainAndroidManifest.xml with this changement:
https://developers.google.com/admob/android/quick-start#update_your_androidmanifestxml
And notice that it's the ADMOB APP ID and not the ADMOB AD ID.

@yacinknn
Copy link

hello
today (11-14-2018) i publish my app in google play , but the support don't accept my app cause this problem

Issue: Violation of Interfering with Apps, Third-party Ads, or Device Functionality policy

Ads should not be shown in a way that results in inadvertent clicks. For example, we don’t allow: Interstitial ads that appear after the user has exited the app (screenshot included)

i use this plugin of admobpro , and this is the firt time that i get this problem because i upadte the plugin today
please help me

@lokeshjain2008
Copy link

Can someone please tell the resolution of the issue. My app still getting crashed after updating to
2.32.6
// config.xml
<plugin name="cordova-plugin-admobpro" spec="2.32.6" />
package.json

"@ionic-native/admob-pro": "^4.18.0",
    "cordova-plugin-admobpro": "2.32.6",

Still getting following error

ava.lang.RuntimeException: Unable to get provider com.google.android.gms.ads.MobileAdsInitProvider: java.lang.IllegalStateException: 

******************************************************************************
* The Google Mobile Ads SDK was initialized incorrectly. AdMob publishers    *
* should follow the instructions here: https://goo.gl/fQ2neu to add a valid  *
* App ID inside the AndroidManifest. Google Ad Manager publishers should     *
* follow instructions here: https://goo.gl/h17b6x.                           *
******************************************************************************


	at android.app.ActivityThread.installProvider(ActivityThread.java:6111)
	at android.app.ActivityThread.installContentProviders(ActivityThread.java:5587)
	at android.app.ActivityThread.handleBindApplication(ActivityThread.java:5526)
	at android.app.ActivityThread.-wrap2(ActivityThread.java)
	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1624)
	at android.os.Handler.dispatchMessage(Handler.java:102)
	at android.os.Looper.loop(Looper.java:163)
	at android.app.ActivityThread.main(ActivityThread.java:6378)
	at java.lang.reflect.Method.invoke(Native Method)
	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:901)
	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:791)
Caused by: java.lang.IllegalStateException: 

******************************************************************************
* The Google Mobile Ads SDK was initialized incorrectly. AdMob publishers    *
* should follow the instructions here: https://goo.gl/fQ2neu to add a valid  *
* App ID inside the AndroidManifest. Google Ad Manager publishers should     *
* follow instructions here: https://goo.gl/h17b6x.                           *
******************************************************************************

@floatinghotpot help to resolve this issue my all apps are now crashing due to this error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants