• 10
name

A PHP Error was encountered

Severity: Notice

Message: Undefined index: userid

Filename: views/question.php

Line Number: 191

Backtrace:

File: /home/prodcxja/public_html/questions/application/views/question.php
Line: 191
Function: _error_handler

File: /home/prodcxja/public_html/questions/application/controllers/Questions.php
Line: 433
Function: view

File: /home/prodcxja/public_html/questions/index.php
Line: 315
Function: require_once

I have meteor project and I try to start it on my mobile device. It starts successfully if I run project on my windows pc and I'm getting this error(error in title) when I try to start it in my linux(ubuntu) pc. Did everything from mobile tutorial on official site of meteor and still can't start a project. I saw a lot of almost the same questions but they hadn't correct answers for me.enter image description here

Try run your this command in your terminal:

echo $ANDROID_HOME

it should return something like this

/home/ivan133/Android/Sdk

If it returns empty string execute these commands and build again

export ANDROID_HOME=${HOME}/Android/Sdk
export PATH=${PATH}:${ANDROID_HOME}/tools
export PATH=${PATH}:${ANDROID_HOME}/platform-tools

Next, it would be nice to add it to your ./bashrc (if you're using bash) Just open ~/.bashrc with text editor and copy the strings to the end

  • 1
Reply Report
      • 1
    • thanks for your answer, I tried to do these actions, but it didn't work for. It worked for me when I wrote this thing in ~/.zshrc file

I added these lines

export ANDROID_HOME=${HOME}/Android/Sdk
export PATH=${PATH}:${ANDROID_HOME}/tools
export PATH=${PATH}:${ANDROID_HOME}/platform-tools

to ~/.zshrc file and it started to work

  • 0
Reply Report