-
-
Notifications
You must be signed in to change notification settings - Fork 196
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Build continues after gradle build fails #2639
Comments
Thsi will be fixed with this PR: #2630 |
I believe this happened when I'm using Brief of output:
|
Im on 3, getting this now. Only fix seems to be platform remove\add. If I do a tns run android it's fine, but if I then do a tns build android this error happens. |
@sitefinitysteve Is it the error that happens, or does the application indeed fire up on the device, despite the fact that the build failed? |
Well tns run android works, app fires up. But then immediately after i can
do tns build Android and get this.
I kept deploying an apk and want seeing the changes i had in the app or
sim, so i tried to build explicitly.
On Jun 18, 2017 2:55 PM, "Peter Kanev" <notifications@github.com> wrote:
@sitefinitysteve <https://github.com/sitefinitysteve> Is it the error that
happens, or does the application indeed fire up on the device, despite the
fact that the build failed?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#2639 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABeI6B42H77aHIOJiGFPDa4jzWw7DUg4ks5sFXKtgaJpZM4MmfCz>
.
|
@sitefinitysteve please refer to NativeScript/android#778 (comment) for the error you are seeing. Also the cause for the error will be less aggressive in 3.1 and print out the classes responsible. If you see that in uglify-webpacked apps - it is likely you have some extended native classes that have not been excluded from the class name mangling. |
Hmm okay great, not webpacked btw.
We talking like .xml/js names the same? I do have like
Folder1\comment.xml
Folder2\comment.xml
Is this what you're talking about?
…On Jun 18, 2017 3:03 PM, "Peter Kanev" ***@***.***> wrote:
@sitefinitysteve <https://github.com/sitefinitysteve> please refer to
NativeScript/android#778 (comment)
<NativeScript/android#778 (comment)>
for the error you are seeing. Also the cause for the error will be less
aggressive in 3.1 and print out the classes responsible. If you see that in
uglify-webpacked apps - it is likely you have some extended native classes
that have not been excluded from the class name mangling.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#2639 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABeI6DIrozZ-YwthHp_80FZGM77T3sJoks5sFXSYgaJpZM4MmfCz>
.
|
Problem:
If the gradle build fails, the CLI will continue executing, printing
Project successfully built. Installing...
, and will attempt to adb push an APK.What this means is that if there is an APK available and a consecutive build fails, the older APK will be used, and the user may never learn that their build didn't complete successfully.
Versions:
Steps to reproduce:
tns create crashMe
cd crashMe
tns platform add android@next
tns build/run android
tns plugin remove tns-core-modules
tns plugin add tns-core-modules@internal-preview
tns run android
OR
make changes to the 'build.gradle' in a task's execution phase to force an exception
tns run android
The run will output the following:
It becomes evident that the gradle build failed during asbg:generateBindings, and the output of the process is 'BUILD FAILED'. Despite that the build continues and deploys on device (provided there was an APK available previously)
The text was updated successfully, but these errors were encountered: