Can't launch AndroidStudio project: name 'default' not found

Yes Linux - Ubuntu 14.04.3.

There’s nothing wrong with the cocos environment variables, he wouldn’t be getting any of the build output from cocos compile if the environment variables weren’t configured.

Ok, I was thinking windows. Make screenshot of your folder, to see what happening there like UKDeveloper said, for me it looks like have somewhere moved cocos2d folder

I think what has happened is you’ve moved the proj.android-studio folder out of the default project folder that is generated when you use (cocos new). Which will break all the folder linking.

Yes, I moved it, but now I tried to open project from default cocos folder: on AVD I’ve got this message:
Unfortunately libcocos2dx has stopped
(Android 4.0.3)

Previous variant (moved from default folder):

xmm, what I see you have only proj.android-studio folder, where are other folders?:smiley: Just create new project without moving files from it. You need all created files to compile it. Android studio screenshot not making sense. You can make compile without opening it at all.

Right, when you create a new cocos project don’t move anything out of it. Or you’ll break things. So you made a project called TestStudio.

Inside the TestStudio folder you should have
TestStudio/Classes
TestStudio/Resources
TestStudio/cocos2d
TestStudio/proj.android-studio
TestStudio/proj.android
… and so on.

Don’t move anything out or it will break.

I’d suggest starting from scratch again, make another new project with cocos new and leave it exactly as it is. Don’t move anything then follow my steps above again.

Content of TestStudio:

That’s right

So what’s wrong then ?

What’s the current problem?

The last one.

It’s crashing on the emulator?

Yes, it does.

did you compile it successfully with cocos compile? I.e. did it say build successful

Yes it did

What does the log say when it crashes?

Which folder were you in when you run the command, cocos compile?

In cocos2d-x-3.9/