Yes, similar but distinct from https://github.com/NativeScript/NativeScript/issues/3637
Attempting to run a freshly created NativeScript 3.0.0 app on Windows 10.
Android
npm install -g nativescript@latest
tns create myapp
tns platform add android
tns run android --emulator
I receive the same error (abridged in the post title) on both the emulator and physical device. Screenshot here:

Running find . | grep NativeScriptActivity in the project I can see that the class file in question does exist in the platforms directory. I have used this PC to build other Android projects so I know the environment is at least reasonably configured but have done a full SDK update, etc. However still the same result.
Hi @stewhouston,
I tested this case on my side while using the above-given steps, however, was unable to reproduce this problem on my side.
Regarding that, could you build the project with tns run android --log trace and to send us the full log from the console.
It would also help if you could send us your sample project including platforms folder, which will allow us to investigate further your case.
Hi @tsonevn, here is the trace log from the run command: trace.zip
I've also zipped the entire project (it's just a fresh 'tns create' project) which I've uploaded to Google Drive here.
I have installed NativeScript on a Ubuntu VM exactly as mentioned above and had no issues so at least I'm not at an impasse. Thanks.
Hi @stewhouston,
Thank you for the attached project.
We tested it on my side and found that this problem could relate to an issue with removing an old platform while rebuilding the app.
Something that you could try is to remove the platform and to add it again before a rebuild. You could review the attached steps below.
tns platform remove androidnpm cache clear tns platform add androidtns run androidIf you still have the same problem, please provide some more info about the Android Build-tool, which have been installed in your SDK Manager. You could also make screenshot of all installed dependencies in Android SDK Manager
Sadly no luck with the remove/cache clear/re-add. You can close this thread or move it to a low priority investigative status as I'm happy working on my Ubuntu VM. Android Studio screenshots below for your reference.


Hi @stewhouston,
Could you select the Show Package Details checkbox for both SDK Platforms and SDK Tools, which will list more detailed info for the available versions and please make other screenshots for both SDK Platforms and SDK Tools.
Thank you in advance for your cooperation.
Closing this one as we were unable to reproduce at our side.
As a side note - this might happen is you try to create an application with application ID that contains non-allowed characters (like white-space).
I have the same issue =(
@stewhouston try to reinstall gradle. It helped me.
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Most helpful comment
@stewhouston try to reinstall gradle. It helped me.