Skip to content

getting this error 'box2d/box2d.h' file not found with minSdkVersion 21 #1958

Answered by meehjeevan
meehjeevan asked this question in Q&A
Discussion options

You must be logged in to vote

@meehjeevan Can you please take a moment to simply generate a new project, but do not add any code to it. Build that project to check if it works in both Xcode 12.4 and Android Studio, and then please reply back in this thread to whether it works or not.

The freshly created new blank project works well on android. I figured it out in my codes I have used this:
#include "extensions/cocos-ext.h" in many files, with this when minSdkVersion is 21 it was giving that errors. But I removed it and now the errors are gone and my game is also running.

Replies: 2 comments 10 replies

Comment options

You must be logged in to vote
4 replies
@meehjeevan
Comment options

@rh101
Comment options

@meehjeevan
Comment options

@rh101
Comment options

Comment options

You must be logged in to vote
6 replies
@meehjeevan
Comment options

@rh101
Comment options

@smilediver
Comment options

@meehjeevan
Comment options

Answer selected by halx99
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants