Wednesday, August 27, 2014

Mobile Development Environment - Issues

Problem#A1:
When Android Development Toolkit (ADT) for x86_64 version installed on Windows 7 x64 and starting Eclipse shows message
'A Java Runtime Environment (JRE) or Java Development Kit (JDK) must be available in order to run Eclipse. No Java virtual machine was found after searching the following location C:\Eclipse\adt-bundle-windows-x86_64-20130522\eclipse\jre\bin\javaw.exe javaw.exe in your current PATH



Even if JDK or JRE is installed in C:\Program Files (x86)\Java

Solution:
Download and install ADT for adt-bundle-windows-x86-20130522 solves the problem

----------------------------------------------------------------------------

Problem#A2:
Creating Andriod Virtual Device (AVD) for Google Nexus 7 with RAM 1024 show error message
'Starting emulator for AVD 'Google_Nexus_7_4.2'
Failed to allocate memory: 8
This application has requested the Runtime to terminate it in an unusual way. Please contact the application's support team for more information.'

Solution:
1. Reduce the RAM to 512
OR
2. Edit C:\Users\<user_name>\.android\avd\<device_name>.avd\config.ini change hw.ramSize=1024 to hw.ramSize=1024MB


----------------------------------------------------------------------------
Problem#A3:  
When new android application project is created in eclipse and tried to run that application its throwing an error message 'AndroidManifest.xml file is missing'.
Solution:  
  • Manually delete the bin and gen directory, 
  • Right click the project and select Android Tools->Fix Project Properties, then using Project->Build All.
---------------------------------------------------------------------------

Problem#B1:
BlackBerry JDE show windows cannot find javaw

Solution:
Append this one to your PATH variable:
C:\Program Files (x86)\Java\jdk1.7.0_06\bin

---------------------------------------------------------------------------
 
Problem#B2:
BlackBerry Packaging Problem Error: Cannot run program "jar": CreateProcess error=2, The system cannot find the file specified
 
Solution: 
Right Click My Computer -> Select Properties-> Select Advanced System Settings Tab -> Environment variables 
Click on new button and Add
Variable Name : JAVA_HOME Variable Value : C:\Program Files\Java\jdk1.7.0\bin

---------------------------------------------------------------------------
Problem#B3:
BlackBerry jde 7.1 java.io.IOException: Cannot run program
 
Environment : BlackBerry JDE 7.1, Windows 7 64-bit
Solution: 
While Installing BlackBerry JDE, change default installation directory to 
C:/JDE/ 
Instead of
C:/Program Files (x86)/research in motion/
---------------------------------------------------------------------------

Problem#W1: 
Windows Phone Application Deployment shows Error failed to connect to device as it is pin locked

Solution: When deploying the app, make sure the phone screen is unlocked.
---------------------------------------------------------------------------

Problem#W2: 
The Windows Phone Emulator wasn't able to connect to the Windows Phone operating system. The emulator couldn't determine the host IP address, which is used to communicate with the guest virtual machine. Some functionality may be disabled.
Solution: 
  1. Started Hyper-V manager
  2. Virtual Switch Manager
  3. Removed the “Windows Phone Emulator Internal Switch” from the list, and applied the changes.
  4. Start the emulator again.  The emulator required an elevation of privileges from the system in order to create the switch again. This will resolve any conflicts.
---------------------------------------------------------------------------

Problem#W3: 
Can't add GoogleAds.dll to Windows Phone 8 project;  Unzip downloaded file. Upon browsing to the DLL and selecting it as the reference, Visual Studio reported:
A reference to a higher version or incompatible assembly cannot be added to the project


Environment : Visual Studio 2012, Windows 8.1,Windows Phone 8 SDK


Solution: Right-click on the DLL file, choosing Properties and then clicking on the Unblock button. Once that is done, Visual Studio will allowed you to add the reference.
  
---------------------------------------------------------------------------
Problem#W4:  
When creating New Windows Phone project, Visual Studio reported:
Object reference not set to an instance of an object

Environment : Visual Studio 2012, Windows 8.1 x64,Windows Phone 8 SDK

Solution: Uninstall NuGet 
 .