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

Compatibility issues #131

Open
domi1504 opened this issue May 21, 2018 · 0 comments
Open

Compatibility issues #131

domi1504 opened this issue May 21, 2018 · 0 comments

Comments

@domi1504
Copy link

domi1504 commented May 21, 2018

Hey there,
I have an issue I can't solve.
I try to implement Google Admob-ads into my libgdx-project. As far as android is concerned, everything works perfectly fine. But I can't set it up in iOS.
I did everything as it is explained, but still the emulator crashes a few seconds after launching the app.
The add does not show up, and some moments later the emulator leaves the app.
Any idea what I've done wrong? Is there maybe a compatibility issue with some versions of RoboVm etc.?

My build.gradle:

`buildscript {
repositories {
mavenLocal()
mavenCentral()
maven { url "https://oss.sonatype.org/content/repositories/snapshots/" }
jcenter()
maven {
url 'https://maven.google.com/'
name 'Google'
}
}
dependencies {
classpath 'com.android.tools.build:gradle:3.0.0'
classpath 'com.mobidevelop.robovm:robovm-gradle-plugin:2.3.2'
}
}

allprojects {
apply plugin: "eclipse"
apply plugin: "idea"

version = '1.0'
ext {
    appName = "admobtest"
    gdxVersion = '1.9.8'
    roboVMVersion = '2.3.2'
    robopodsVersion = '2.2.2'
    box2DLightsVersion = '1.4'
    ashleyVersion = '1.7.0'
    aiVersion = '1.8.0'
}

repositories {
    mavenLocal()
    mavenCentral()
    maven { url "https://oss.sonatype.org/content/repositories/snapshots/" }
    maven { url "https://oss.sonatype.org/content/repositories/releases/" }
    maven {
        url 'https://maven.google.com/'
        name 'Google'
    }
}

}

project(":desktop") {
apply plugin: "java"

dependencies {
    compile project(":core")
    compile "com.badlogicgames.gdx:gdx-backend-lwjgl:$gdxVersion"
    compile "com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-desktop"
    compile "com.badlogicgames.gdx:gdx-box2d-platform:$gdxVersion:natives-desktop"
    compile "com.badlogicgames.gdx:gdx-freetype-platform:$gdxVersion:natives-desktop"
}

}

project(":android") {
apply plugin: "android"

configurations { natives }

dependencies {
    compile project(":core")

    implementation 'com.google.android.gms:play-services-ads:15.0.1'
    //compile 'com.google.android.gms:play-services-ads:15.0.1'

    compile "com.badlogicgames.gdx:gdx-backend-android:$gdxVersion"
    natives "com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-armeabi"
    natives "com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-armeabi-v7a"
    natives "com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-arm64-v8a"
    natives "com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-x86"
    natives "com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-x86_64"
    compile "com.badlogicgames.gdx:gdx-box2d:$gdxVersion"
    natives "com.badlogicgames.gdx:gdx-box2d-platform:$gdxVersion:natives-armeabi"
    natives "com.badlogicgames.gdx:gdx-box2d-platform:$gdxVersion:natives-armeabi-v7a"
    natives "com.badlogicgames.gdx:gdx-box2d-platform:$gdxVersion:natives-arm64-v8a"
    natives "com.badlogicgames.gdx:gdx-box2d-platform:$gdxVersion:natives-x86"
    natives "com.badlogicgames.gdx:gdx-box2d-platform:$gdxVersion:natives-x86_64"
    compile "com.badlogicgames.gdx:gdx-freetype:$gdxVersion"
    natives "com.badlogicgames.gdx:gdx-freetype-platform:$gdxVersion:natives-armeabi"
    natives "com.badlogicgames.gdx:gdx-freetype-platform:$gdxVersion:natives-armeabi-v7a"
    natives "com.badlogicgames.gdx:gdx-freetype-platform:$gdxVersion:natives-arm64-v8a"
    natives "com.badlogicgames.gdx:gdx-freetype-platform:$gdxVersion:natives-x86"
    natives "com.badlogicgames.gdx:gdx-freetype-platform:$gdxVersion:natives-x86_64"
}

}

project(":ios") {
apply plugin: "java"
apply plugin: "robovm"

dependencies {
    compile project(":core")

    compile "com.mobidevelop.robovm:robopods-google-mobile-ads-ios:$robopodsVersion"

    compile "com.mobidevelop.robovm:robovm-rt:$roboVMVersion"
    compile "com.mobidevelop.robovm:robovm-cocoatouch:$roboVMVersion"

    compile "com.badlogicgames.gdx:gdx-backend-robovm:$gdxVersion"
    compile "com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-ios"
    compile "com.badlogicgames.gdx:gdx-box2d-platform:$gdxVersion:natives-ios"
    compile "com.badlogicgames.gdx:gdx-freetype-platform:$gdxVersion:natives-ios"
}

}

project(":core") {
apply plugin: "java"

dependencies {
    compile "com.badlogicgames.gdx:gdx:$gdxVersion"
    compile "com.badlogicgames.gdx:gdx-box2d:$gdxVersion"
    compile "com.badlogicgames.gdx:gdx-freetype:$gdxVersion"
}

}

tasks.eclipse.doLast {
delete ".project"
}`

Result:

2018-05-21 14:58:23.772 simlauncher[1221:247680] -[NSThread initWithBlock:]: unrecognized selector sent to instance 0x7fa69b60cfb0
2018-05-21 14:58:24.578 simlauncher[1221:247680] An uncaught exception was raised
2018-05-21 14:58:24.632 simlauncher[1221:247680] -[NSThread initWithBlock:]: unrecognized selector sent to instance 0x7fa69b60cfb0
2018-05-21 14:58:24.632 simlauncher[1221:247680] (
0 CoreFoundation 0x00007fff95f72452 __exceptionPreprocess + 178
1 libobjc.A.dylib 0x00007fff9be1473c objc_exception_throw + 48
2 CoreFoundation 0x00007fff95fdc10d -[NSObject(NSObject) doesNotRecognizeSelector:] + 205
3 CoreFoundation 0x00007fff95ee24d1 forwarding + 1009
4 CoreFoundation 0x00007fff95ee2058 _CF_forwarding_prep_0 + 120
5 simlauncher 0x0000000101be5ecd moe_mkfifo + 637
6 simlauncher 0x0000000101be6623 __moe_main_block_invoke + 1043
7 DVTiPhoneSimulatorRemoteClient 0x000000010529c4eb __60-[DVTSimulatorApplication launchWithError:andReadyCallback:]_block_invoke + 302
8 DVTFoundation 0x00000001046b2576 DVTInvokeWithLazyFailureHint + 100
9 DVTFoundation 0x000000010466cf32 __48-[_DVTNotificationReceiver receiveNotification:]_block_invoke.42 + 149
10 DVTFoundation 0x000000010466cc7f -[_DVTNotificationReceiver receiveNotification:] + 1054
11 CoreFoundation 0x00007fff95efdb1c CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER + 12
12 CoreFoundation 0x00007fff95efdaaf ___CFXRegistrationPost_block_invoke + 63
13 CoreFoundation 0x00007fff95f0740c CFRUNLOOP_IS_CALLING_OUT_TO_A_BLOCK + 12
14 CoreFoundation 0x00007fff95ee6c65 __CFRunLoopDoBlocks + 341
15 CoreFoundation 0x00007fff95ee69cb __CFRunLoopRun + 2347
16 CoreFoundation 0x00007fff95ee5e38 CFRunLoopRunSpecific + 296
17 Foundation 0x00007fff9a9f0ed9 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 270
18 Foundation 0x00007fff9aa84fc3 -[NSRunLoop(NSRunLoop) runUntilDate:] + 108
19 simlauncher 0x0000000101be5385 moe_main + 1989
20 simlauncher 0x0000000101be4b81 main + 321
21 libdyld.dylib 0x00007fff98e7d5ad start + 1
22 ??? 0x0000000000000005 0x0 + 5
)
2018-05-21 14:58:24.661 simlauncher[1221:247680] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[NSThread initWithBlock:]: unrecognized selector sent to instance 0x7fa69b60cfb0'
*** First throw call stack:
(
0 CoreFoundation 0x00007fff95f72452 __exceptionPreprocess + 178
1 libobjc.A.dylib 0x00007fff9be1473c objc_exception_throw + 48
2 CoreFoundation 0x00007fff95fdc10d -[NSObject(NSObject) doesNotRecognizeSelector:] + 205
3 CoreFoundation 0x00007fff95ee24d1 forwarding + 1009
4 CoreFoundation 0x00007fff95ee2058 _CF_forwarding_prep_0 + 120
5 simlauncher 0x0000000101be5ecd moe_mkfifo + 637
6 simlauncher 0x0000000101be6623 __moe_main_block_invoke + 1043
7 DVTiPhoneSimulatorRemoteClient 0x000000010529c4eb __60-[DVTSimulatorApplication launchWithError:andReadyCallback:]_block_invoke + 302
8 DVTFoundation 0x00000001046b2576 DVTInvokeWithLazyFailureHint + 100
9 DVTFoundation 0x000000010466cf32 __48-[_DVTNotificationReceiver receiveNotification:]_block_invoke.42 + 149
10 DVTFoundation 0x000000010466cc7f -[_DVTNotificationReceiver receiveNotification:] + 1054
11 CoreFoundation 0x00007fff95efdb1c CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER + 12
12 CoreFoundation 0x00007fff95efdaaf ___CFXRegistrationPost_block_invoke + 63
13 CoreFoundation 0x00007fff95f0740c CFRUNLOOP_IS_CALLING_OUT_TO_A_BLOCK + 12
14 CoreFoundation 0x00007fff95ee6c65 __CFRunLoopDoBlocks + 341
15 CoreFoundation 0x00007fff95ee69cb __CFRunLoopRun + 2347
16 CoreFoundation 0x00007fff95ee5e38 CFRunLoopRunSpecific + 296
17 Foundation 0x00007fff9a9f0ed9 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 270
18 Foundation 0x00007fff9aa84fc3 -[NSRunLoop(NSRunLoop) runUntilDate:] + 108
19 simlauncher 0x0000000101be5385 moe_main + 1989
20 simlauncher 0x0000000101be4b81 main + 321
21 libdyld.dylib 0x00007fff98e7d5ad start + 1
22 ??? 0x0000000000000005 0x0 + 5
)
libc++abi.dylib: terminating with uncaught exception of type NSException

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

No branches or pull requests

1 participant