# Popup question

**URL:** <https://forum.ionicframework.com/t/popup-question/17194>\
**Category:** ionic-v1\
**Created:** [February 8, 2015, 1:23pm UTC](https://forum.ionicframework.com/t/popup-question/17194 "2015-02-08T13:23:52Z")\
**Posts on this page:** 17\
**Page:** 1

<div class="post-metadata">

**Author:** ![raven](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/raven/32/8860_2.png) [@raven](https://forum.ionicframework.com/u/raven)\
**Post date:** [February 8, 2015, 1:23pm UTC](https://forum.ionicframework.com/t/popup-question/17194/1 "2015-02-08T13:23:52Z")

</div>

I have a list, and all the item have a ngClick function to open a popup.  
then I open the popup , If the pop-body is too height so I need to scroll, When I scroll the popbody,  
the popbody will flashing.  
I run the app in android version 4.12

Maybe Because I add max-height for pop-body.  
but if I don’t add max-height. Here is another big problem when a have a long article.

 ![image](https://global.discourse-cdn.com/ionicframework/original/3X/8/4/849f6baca1225442cc031381cd1e4047c7e21c35.png)

```
    var template = "<p>While it's possible for buttons to use a child <i> to set the icon, they can also set their icon just by setting the buttons own class. Please take a look at button icon docs for more info. Note: Ionic is certainly not restricted to using only the Ionicons icon pack, so please feel free to use any icons you wish.</p>" +
    "<p>Ionic is an open source framework released under a permissive MIT license. This means you can use Ionic in your own personal or commercial projects for free. MIT is the same license used by such popular projects as jQuery and Ruby on Rails.</p>" +
    "<p>The website content here (found in the ionic-site repo) is under the Apache 2 license.</p>" +
    "<p>We'd love to have you help improve Ionic, whether it's improving the framework's code, or touching up the documentation. For more information on Contributing, check out our Contributor Guide.</p>";
    var pop = $ionicPopup.confirm({
        title: 'Consume Ice Cream',
        template: template
    });
    pop.then(function(res) {
        if (res) {
            console.log('You are sure');
        } else {
            console.log('You are not sure');
        }
    })
}
```

---

<div class="post-metadata">

**Author:** ![raven](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/raven/32/8860_2.png) [@raven](https://forum.ionicframework.com/u/raven)\
**Post date:** [February 9, 2015, 1:13am UTC](https://forum.ionicframework.com/t/popup-question/17194/2 "2015-02-09T01:13:39Z")

</div>

@mhartington  
Sir ,I try in Android 4.1 and 4.3,the problem is the same.  
but un 4.4 ,works well

---

<div class="post-metadata">

**Author:** ![mhartington](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/mhartington/32/137757_2.png) [@mhartington](https://forum.ionicframework.com/u/mhartington)\
**Post date:** [February 9, 2015, 2:59pm UTC](https://forum.ionicframework.com/t/popup-question/17194/3 "2015-02-09T14:59:35Z")

</div>

What version ionic.js are you using?  
Have you tried using crosswalk with this?

---

<div class="post-metadata">

**Author:** ![raven](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/raven/32/8860_2.png) [@raven](https://forum.ionicframework.com/u/raven)\
**Post date:** [February 10, 2015, 11:03am UTC](https://forum.ionicframework.com/t/popup-question/17194/4 "2015-02-10T11:03:02Z")

</div>

ionic #1.0.0-beta.14  
**when i add crosswalk and then I build android**

Running command: /Users/raven/desktop/MicroSims-mobile/hooks/after\_prepare/010\_add\_platform\_class.js /Users/raven/desktop/MicroSims-mobile  
add to body class: platform-android  
Running command: /Users/raven/desktop/MicroSims-mobile/hooks/after\_prepare/020\_remove\_sass\_from\_platforms.js /Users/raven/desktop/MicroSims-mobile  
Running command: /Users/raven/desktop/MicroSims-mobile/platforms/android/cordova/build  
ANDROID\_HOME=/Users/raven/documents/android-sdk-macosx  
JAVA\_HOME=/Library/Java/JavaVirtualMachines/jdk1.7.0\_71.jdk/Contents/Home  
Running: /Users/raven/desktop/MicroSims-mobile/platforms/android/gradlew cdvBuildDebug -b /Users/raven/desktop/MicroSims-mobile/platforms/android/build.gradle -Dorg.gradle.daemon=true

FAILURE: Build failed with an exception.

- Where:  
Script ‘/Users/raven/Desktop/MicroSims-mobile/platforms/android/CordovaLib/cordova.gradle’ line: 64

- What went wrong:  
A problem occurred evaluating root project ‘android’.

> No installed build tools found. Please install the Android build tools version 19.1.0 or higher.

- Try:  
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

Total time: 2.52 secs

/Users/raven/desktop/MicroSims-mobile/platforms/android/cordova/node\_modules/q/q.js:126  
throw e;  
^  
Error code 1 for command: /Users/raven/desktop/MicroSims-mobile/platforms/android/gradlew with args: cdvBuildDebug,-b,/Users/raven/desktop/MicroSims-mobile/platforms/android/build.gradle,-Dorg.gradle.daemon=true  
ERROR building one of the platforms: Error: /Users/raven/desktop/MicroSims-mobile/platforms/android/cordova/build: Command failed with exit code 1  
You may not have the required environment or OS to build this project

![image](https://global.discourse-cdn.com/ionicframework/original/2X/d/d5cdc69772e2444dd8b4db031711c2370c8c48fa.jpg)

---

<div class="post-metadata">

**Author:** ![mhartington](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/mhartington/32/137757_2.png) [@mhartington](https://forum.ionicframework.com/u/mhartington)\
**Post date:** [February 10, 2015, 9:51pm UTC](https://forum.ionicframework.com/t/popup-question/17194/5 "2015-02-10T21:51:14Z")

</div>

What version of the cli do you have?

```bash
$ ionic info

```

---

<div class="post-metadata">

**Author:** ![raven](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/raven/32/8860_2.png) [@raven](https://forum.ionicframework.com/u/raven)\
**Post date:** [February 11, 2015, 1:04am UTC](https://forum.ionicframework.com/t/popup-question/17194/6 "2015-02-11T01:04:23Z")

</div>

> [@mhartington](#):
>
> ionic info

OS: Mac OS X Yosemite  
Node Version: v0.12.0  
Cordova CLI: 4.2.0  
Ionic CLI Version: 1.3.9  
Xcode version: Xcode 6.1.1 Build version 6A2008a  
ios-sim version: 3.1.1

and ionic version in project 1.0.0-beta.14

---

<div class="post-metadata">

**Author:** ![mhartington](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/mhartington/32/137757_2.png) [@mhartington](https://forum.ionicframework.com/u/mhartington)\
**Post date:** [February 11, 2015, 2:40pm UTC](https://forum.ionicframework.com/t/popup-question/17194/7 "2015-02-11T14:40:34Z")

</div>

It may seem like a small thing, but can you upgrade to the latest ionic CLI?  
it should be 1.3.10

---

<div class="post-metadata">

**Author:** ![raven](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/raven/32/8860_2.png) [@raven](https://forum.ionicframework.com/u/raven)\
**Post date:** [February 11, 2015, 3:25pm UTC](https://forum.ionicframework.com/t/popup-question/17194/8 "2015-02-11T15:25:27Z")

</div>

now I update  
and rm platforms hooks plugins engine and add again

then I build android, still get error.

FAILURE: Build failed with an exception.

- Where:  
Script ‘/Users/raven/Desktop/MicroSims-mobile/platforms/android/CordovaLib/cordova.gradle’ line: 64

- What went wrong:  
A problem occurred evaluating root project ‘android’.

> No installed build tools found. Please install the Android build tools version 19.1.0 or higher.

- Try:  
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

Total time: 4.352 secs

/Users/raven/desktop/MicroSims-mobile/platforms/android/cordova/node\_modules/q/q.js:126  
throw e;  
^  
Error code 1 for command: /Users/raven/desktop/MicroSims-mobile/platforms/android/gradlew with args: cdvBuildDebug,-b,/Users/raven/desktop/MicroSims-mobile/platforms/android/build.gradle,-Dorg.gradle.daemon=true  
ERROR building one of the platforms: Error: /Users/raven/desktop/MicroSims-mobile/platforms/android/cordova/build: Command failed with exit code 1  
You may not have the required environment or OS to build this project

**ionic info**  
OS: Mac OS X Yosemite  
Node Version: v0.12.0  
Cordova CLI: 4.2.0  
Ionic CLI Version: 1.3.10  
Xcode version: Xcode 6.1.1 Build version 6A2008a  
ios-sim version: 3.1.1

and sir, why i miss ionic version in ionic info?

---

<div class="post-metadata">

**Author:** ![triniwiz](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/triniwiz/32/74300_2.png) [@triniwiz](https://forum.ionicframework.com/u/triniwiz)\
**Post date:** [February 11, 2015, 4:35pm UTC](https://forum.ionicframework.com/t/popup-question/17194/9 "2015-02-11T16:35:48Z")

</div>

No installed build tools found. Please install the Android build tools version 19.1.0 or higher.

U need to install androif build tools 19.1.0 or higher

---

<div class="post-metadata">

**Author:** ![raven](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/raven/32/8860_2.png) [@raven](https://forum.ionicframework.com/u/raven)\
**Post date:** [February 11, 2015, 4:58pm UTC](https://forum.ionicframework.com/t/popup-question/17194/10 "2015-02-11T16:58:27Z")

</div>

> [@triniwiz](#):
>
> androif build tools

I have add build-tools

http:/uploads/default/original/2X/d/d5cdc69772e2444dd8b4db031711c2370c8c48fa.jpg  
however ionic can’t load it?

---

<div class="post-metadata">

**Author:** ![triniwiz](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/triniwiz/32/74300_2.png) [@triniwiz](https://forum.ionicframework.com/u/triniwiz)\
**Post date:** [February 11, 2015, 5:12pm UTC](https://forum.ionicframework.com/t/popup-question/17194/11 "2015-02-11T17:12:55Z")

</div>

Well the system path seems like it’s not properly configured ☹

---

<div class="post-metadata">

**Author:** ![raven](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/raven/32/8860_2.png) [@raven](https://forum.ionicframework.com/u/raven)\
**Post date:** [February 11, 2015, 5:15pm UTC](https://forum.ionicframework.com/t/popup-question/17194/12 "2015-02-11T17:15:06Z")

</div>

Ok, I will try to change the android path,and try it again.

---

<div class="post-metadata">

**Author:** ![raven](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/raven/32/8860_2.png) [@raven](https://forum.ionicframework.com/u/raven)\
**Post date:** [February 11, 2015, 5:25pm UTC](https://forum.ionicframework.com/t/popup-question/17194/13 "2015-02-11T17:25:32Z")

</div>

can you show me your bash\_profile file of android?

---

<div class="post-metadata">

**Author:** ![raven](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/raven/32/8860_2.png) [@raven](https://forum.ionicframework.com/u/raven)\
**Post date:** [February 11, 2015, 6:06pm UTC](https://forum.ionicframework.com/t/popup-question/17194/14 "2015-02-11T18:06:24Z")

</div>

![image](https://global.discourse-cdn.com/ionicframework/original/2X/9/9d2c57fe92ca5f88e41928f4855b25822a4e8a15.jpg)

here is my android sdk  
android-4.4.2  
android-5.0  
android-5.0.1 in build-tools,  
and I also try to add build-tools in PATH;  
but still fail to build app

---

<div class="post-metadata">

**Author:** ![triniwiz](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/triniwiz/32/74300_2.png) [@triniwiz](https://forum.ionicframework.com/u/triniwiz)\
**Post date:** [February 11, 2015, 6:12pm UTC](https://forum.ionicframework.com/t/popup-question/17194/15 "2015-02-11T18:12:38Z")

</div>

i use ubuntu

i added these lines to the bottom of my bashrc file

#AndroidDev PATH  
export ANDROID\_HOME=/home/osei/Documents/android-sdk  
export PATH=${PATH}:~/npm-global/bin:$ANDROID\_HOME/tools:$ANDROID\_HOME/platform-tools:$ANDROID\_HOME

---

<div class="post-metadata">

**Author:** ![raven](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/raven/32/8860_2.png) [@raven](https://forum.ionicframework.com/u/raven)\
**Post date:** [February 12, 2015, 5:48am UTC](https://forum.ionicframework.com/t/popup-question/17194/16 "2015-02-12T05:48:01Z")

</div>

thank you very much .  
after I config android files , I fix this problem.

---

<div class="post-metadata">

**Author:** ![triniwiz](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/triniwiz/32/74300_2.png) [@triniwiz](https://forum.ionicframework.com/u/triniwiz)\
**Post date:** [February 12, 2015, 9:08am UTC](https://forum.ionicframework.com/t/popup-question/17194/17 "2015-02-12T09:08:58Z")

</div>

(^o^)/ youre welcome
