@na299 wrote:
As far as I remember, the file "project.properties" is used by ADT in Eclipse project. However I spotted it under the proj.android-studio directory and the target specified in it is rather low: target=android-15, although in gradle file I specify the target SDK version 24.
The comment in the file says "DO NOT CHANGE" and the changes would be erased.
But actually when I tried to change it, it is not erased and my change does cause problem:
So I change it to target=android-24, and it compiles fine, but the app does not run on Android 4.4.4 device with error "cannot locate symbol "srand" referenced by "libMyGame.so"", but the same app runs OK in my Android M and N devices.
And as soon as I change the target to 23 or lower it's OK on all the devices. Well, I think it is because my NDK version is not updated to r11 and thus something is missing for android N if I specify 24 as the target.
I can see that when I run cocos compile command, there is a line like:
Android platform not specified, searching a default one...
running: '"C:\Android\tools\android" update project -t android-23 -p C:\Users\zhuqi\Hextris\proj.android-studio\app'I thought this was updating the project.properties file, but actually it is using it .
So I started wondering: How is project.properties used at all in the building process? Why the default value of target version is so low and why isn't it erasing my changes as it says?
Posts: 1
Participants: 1