NativeScript With Angular 4 (Unable to simultaneously satisfy constraints.) -
i'm new nativescript , have been creating ios app using angular 4. got requirement add videoplayer , used nativescript-videoplayer this. worked. im getting below kinda error whenever page (with video)
=========================================================================== error nativescript cli (terminal)
unable simultaneously satisfy constraints. @ least 1 of constraints in following list 1 don't want.
try this: (1) @ each constraint , try figure out don't expect; (2) find code added unwanted constraint or constraints , fix it. (note: if you're seeing nsautoresizingmasklayoutconstraints don't understand, refer documentation uiview property translatesautoresizingmaskintoconstraints) ( "<nsautoresizingmasklayoutconstraint:0x7fa8ec904080 h=-&- v=-&- _uibackdropcontentview:0x7fa8ec6c6800.width == _uibackdropview:0x7fa8ec76d810.width>", "<nslayoutconstraint:0x7fa8ec76a3a0 h:|-(0)-[uiview:0x7fa8ec737650] (names: '|':uiview:0x7fa8ec733d90 )>", "<nslayoutconstraint:0x7fa8ec76a3f0 h:[uiview:0x7fa8ec737650]-(0)-| (names: '|':uiview:0x7fa8ec733d90 )>", "<nslayoutconstraint:0x7fa8ec737c70 h:|-(0)-[uiview:0x7fa8ec733d90] (names: '|':avplayerview:0x7fa8ec43fc90 )>", "<nslayoutconstraint:0x7fa8ec737cc0 h:[uiview:0x7fa8ec733d90]-(0)-| (names: '|':avplayerview:0x7fa8ec43fc90 )>", "<nslayoutconstraint:0x7fa8ec77c3a0 h:|-(0)-[uiview:0x7fa8ec6c7d60] (names: '|':_uibackdropcontentview:0x7fa8ec6c6800 )>", "<nslayoutconstraint:0x7fa8ec77c420 h:[uiview:0x7fa8ec6c7d60]-(0)-| (names: '|':_uibackdropcontentview:0x7fa8ec6c6800 )>", "<nslayoutconstraint:0x7fa8ec77c110 h:|-(0)-[_uibackdropview:0x7fa8ec76d810] (names: '|':uiview:0x7fa8ec76d5f0 )>", "<nslayoutconstraint:0x7fa8ec77c190 h:[_uibackdropview:0x7fa8ec76d810]-(0)-| (names: '|':uiview:0x7fa8ec76d5f0 )>", "<nslayoutconstraint:0x7fa8ec77bdd0 h:|-(0)-[uiview:0x7fa8ec76d5f0] (names: '|':avalphaupdatingview:0x7fa8ec76d470 )>", "<nslayoutconstraint:0x7fa8ec77be50 h:[uiview:0x7fa8ec76d5f0]-(0)-| (names: '|':avalphaupdatingview:0x7fa8ec76d470 )>", "<nslayoutconstraint:0x7fa8ec904fe0 h:|-(14)-[avbutton:0x7fa8ec6c8190](ltr) (names: '|':uiview:0x7fa8ec6c7d60 )>", "<nslayoutconstraint:0x7fa8ec905200 h:[avbutton:0x7fa8ec6c8190]-(15)-[uilabel:0x7fa8ec6c73e0'0:00'](ltr)>", "<nslayoutconstraint:0x7fa8ec9052a0 h:[uilabel:0x7fa8ec6c73e0'0:00']-(12)-[avscrubber:0x7fa8ec6ca580](ltr)>", "<nslayoutconstraint:0x7fa8ec9057d0 avscrubber:0x7fa8ec6ca580.right == uilabel:0x7fa8ec6cb750'--:--'.left - 12>", "<nslayoutconstraint:0x7fa8ec9058c0 uilabel:0x7fa8ec6cb750'--:--'.right == avbutton:0x7fa8ec6cc670.left - 15>", "<nslayoutconstraint:0x7fa8ec905960 avbutton:0x7fa8ec6cc670.right == avbutton:0x7fa8ec7735b0.left - 10>", "<nslayoutconstraint:0x7fa8ec905870 avbutton:0x7fa8ec7735b0.right == avbutton:0x7fa8ec775b90.left - 10>", "<nslayoutconstraint:0x7fa8ec905c10 avbutton:0x7fa8ec775b90.right == uiview:0x7fa8ec6c7d60.right - 14>", "<nslayoutconstraint:0x7fa8ec79a6e0 h:|-(0)-[avalphaupdatingview:0x7fa8ec76d470] (names: '|':uiview:0x7fa8ec737650 )>", "<nslayoutconstraint:0x7fa8ec79b750 h:[avalphaupdatingview:0x7fa8ec76d470]-(0)-| (names: '|':uiview:0x7fa8ec737650 )>", "<nslayoutconstraint:0x7fa8ec786910 'uiview-encapsulated-layout-width' h:[avplayerview:0x7fa8ec43fc90(100)]>" ) attempt recover breaking constraint <nslayoutconstraint:0x7fa8ec905200 h:[avbutton:0x7fa8ec6c8190]-(15)-[uilabel:0x7fa8ec6c73e0'0:00'](ltr)> make symbolic breakpoint @ uiviewalertforunsatisfiableconstraints catch in debugger. methods in uiconstraintbasedlayoutdebugging category on uiview listed in <uikit/uiview.h> may helpful.aug 15 15:25:11 --- last message repeated 1 time --- console log file:///app/login/login.component.js:164:20: switch next page
i did research on in ios - xcode blo, found because of auto layout issue. tried fixing in nativescript design (.html). couldn't. please me sort issue. if need more info let me know.
the below nativescript design code (.html)
<gridlayout> <!-- first page --> <stacklayout #initialcontainer class="initial-container"> <image src="res://logo_login" stretch="none" class="initial-logo"></image> <label text="bozucu" class="initial-label"></label> <textview col="1" [(ngmodel)]="slogan" [editable]="false"> </textview> <stacklayout> <videoplayer #whiteboardvideo *ngif="true" [src]="whiteboardvideosrc" autoplay="true" height="300"> </videoplayer> </stacklayout> <stacklayout (tap)="showmaincontent()" class="initial-button"> <label text="register" class="initial-button-label"></label> </stacklayout> </stacklayout> <!-- first page --> </gridlayout> thanks in advance. appreciate solve this.
Comments
Post a Comment