Could not find gradle wrapper within Android SDK. Might need to update your Android SDK [duplicate]

Edit: There has been a newer release of Cordova Android that also fixes some problems with SDK tools 26.x.x cordova platform update android@6.2.2 or cordova platform rm android cordova platform add android@6.2.2 Old answer Google broke Cordova Android 6.1.x and some other frameworks with their latest sdk tools update. Cordova Android 6.2.1 has been released … Read more

Cannot read property ‘native-element’ of undefined

I think you are tring to get the value from html before rendering completely. If you try to print the value in a button click, it will works. depend on your code I have modified a little.Try the below, it is working for me. ngAfterViewInit() { console.log(“afterinit”); setTimeout(() => { console.log(this.abc.nativeElement.innerText); }, 1000); } Note: … Read more

Ionic 2 Images not displaying on device

I had the same issue with relative paths <img src=”https://stackoverflow.com/questions/assets/img/vis_reco.png”> does work with ionic serve / and also with livereload in the emulator (e.g. from src/pages/home/home.html ) But not on the device. Don’t use relative paths for images !!! <img src=”https://stackoverflow.com/questions/42830752/assets/img/vis_reco.png”> works for me with Ionic (v3) and also angular typescript apps. On the device … Read more

Integrating JavaScript web plugin in Ionic 2

You should first identify the actual problem. If problem is in jquery installation, then you can debug it using following line. console.log(“Jwuery Text : ” , $(‘.testClassName’)); If below log is completely printed in the console then there is no mistake in jquery. This memory size issue is resolved using reInitialize memory heap by using … Read more

Property binding ngForIn not used by any directive on an embedded template – Ionic 2

Your are mistaken with angular1 syntaxes: Instead of *ngFor=”#media in medias”, you have to write *ngFor=”#media of medias” UPDATE – as of beta.17, use the let syntax instead of #. This updates to the following: <div *ngFor=”let media of medias”> https://angular.io/docs/ts/latest/api/common/index/NgFor-directive.html

Remove ion item divider

This is for ionic 2 and 3. Please refer to this answer for higher versions of ionic use no-lines <ion-row ion-list> <ion-col width-25 *ngFor=”let player of players”> <ion-item no-lines color=”dark”><!– here –> <ion-avatar item-left> <img [src]=”photo” class=”img img-circle”/> </ion-avatar> {{user.name}} </ion-item> </ion-col> </ion-row>

Ionic build android, Error: spawn EACCES

Got the same error today. Thanks to the comments above, here is how I fixed it. Ran: cordova build android –verbose and it showed me where it got the “Permission Denied” error… In my case it was: Running command: /usr/libexec/java_home Command finished with error code 0: /usr/libexec/java_home ANDROID_HOME=/Users/mj/phonegap/adt-bundle-mac-x86_64-20140321/sdk JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_40.jdk/Contents/Home Running command: “/Applications/Android Studio.app/Contents/gradle/gradle-2.2.1/bin/gradle” -p /Users/mj/EduceMobile/app/platforms/android … Read more

Swiper slides – showing end/start of previous/next slides like Airbnb Slider?

Just set the slidesPerView option using decimal places, eg: var swiper = new Swiper(‘.swiper-container’, { … // this shows a bit of the previous/next slides slidesPerView: 1.1, centeredSlides: true, spaceBetween: 10, … }); As long as you don’t set the slideshow to loop then the first and last slides will have extra space instead of … Read more