Your issues are AAPT and DX execution failed.
You are using a third party offline version of app inventor and building your Project with it, then attempting to use App Inventor 2 online. Often that won't work. The third party off line versions of AI2 are NOT COMPATIBLE with the most recent versions of AI2. Do not mix and match. Switching between compilers might be your issue. We recommend a developer never do that without realizing the problem of incompatibility.
Works for a moment and then closes ... this sounds like a memory issue or a Screen being improperly opened and then not properly closed.
Do you use extensions? Another source of these types of errors are out of date extensions.