cocos2d / cocos2d-x

Cocos2d-x is a suite of open-source, cross-platform, game-development tools utilized by millions of developers across the globe. Its core has evolved to serve as the foundation for Cocos Creator 1.x & 2.x.
https://www.cocos.com/en/cocos2d-x
18.24k stars 7.06k forks source link

the android 9.0 issue #19452

Open hk520570 opened 5 years ago

hk520570 commented 5 years ago

In the case of Android 9.0, this app is built specifically for the old Android version, so it may not work properly. Please check for updates or contact the developer.(此应用专为旧版android 打造,因此可能无法正常运行,请检查更新或与开发者联系)

minggo commented 5 years ago

Can the app run correctly, is it just a warning?

hk520570 commented 5 years ago

Can the app run correctly, is it just a warning?

just warning~~like this:https://www.jianshu.com/p/9dc825ac1c58

minggo commented 5 years ago

So it seems can not solve it in by engine. The Application should set target SDK version to 17+?

hk520570 commented 5 years ago

So it seems can not solve it in by engine. The Application should set target SDK version to 17+?

how to modify it,I use ->call cocos compile -p android --ap android-28 -m release --compile-script 0 however it has warring!

set targetsdkversion into AndroidManifest.xml like this:uses-sdk android:minSdkVersion="9" android:targetSdkVersion="17"/ ? but it cann't work,the failed is: dlopen failed: cocos2djs.so

minggo commented 5 years ago

I think you should modify target=android-13 in project.properties.

hk520570 commented 5 years ago

thank you! I try it

hk520570 commented 5 years ago

my project.properties set:target=android-28,but it has warring

minggo commented 5 years ago

it is strange, i will find a device to test

hk520570 commented 5 years ago

it is strange, i will find a device to test

thank you~

minggo commented 5 years ago

We found 3.10 can not work on Android 9, crashed when start up. But 3.17.1 works.

hk520570 commented 5 years ago

We found 3.10 can not work on Android 9, crashed when start up. But 3.17.1 works.

my new workspace use 3.16,but 3.10 work well on Android 9,but it has warring

imtrobin commented 5 years ago

I have same problem, an old app build with cocos 3.14( or earlier) is not working Android 9

imtrobin commented 5 years ago

Yes, I confirm it is built with 3.14.1