Quantcast
Channel: Appcelerator Developer Center Q&A Tag Feed (device)
Viewing all articles
Browse latest Browse all 250

Android - Project stop when installing application on device/genymotion

0
0
  • Titanium SDK version: 3.2.3 GA
  • Target platform (Android, iOS etc): Android
  • Your operating system (OSX, Windows, Linux) : Windows

Hi everyone, recently I encounter some problems that I hardly find the answers as I did search for it on Google or Appcelerator Community.

The problem is WHEN I try to run my project on Genymotion (Nexus 5 Emulator) or Device (nexus 7) as the console get to [INFO] : Installing app on device: Genymotion then the progress bar disappeared as nothing is running.

I did wait for a moment but nothing really happening. I tried some tricks like increasing Android ADB Timeout but it's not the solution to my problem. Another thing is I tried to clean project, uninstall application on Genymotion or Device and run the project again. I repeat the same process like 10 times or 15 times & I can get only 1 successful run to debug.

I wonder if there is anything wrong with my tiapp.xml or the code itself that affect the run process. If there is any information that I need to provide, please tell me as I really don't know which information to provide about this situation.

Below is my android configuration in tiapp.xml

<android xmlns:android="http://schemas.android.com/apk/res/android">
        <manifest>
            <!-- Allows the API to download data from Google Map servers -->
            <uses-permission android:name="android.permission.INTERNET"/>
            <!-- Allows the API to cache data -->
            <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
            <!-- Use GPS for device location -->
            <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>
            <!-- Use Wi-Fi or mobile connection for device location -->
            <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/>
            <!-- Allows the API to access Google web-based services -->
            <uses-permission android:name="com.google.android.providers.gsf.permission.READ_GSERVICES"/>
            <!-- Specify OpenGL ES 2.0 as a requirement -->
            <uses-feature android:glEsVersion="0x00020000" android:required="true"/>
            <!-- Replace <com.domain.appid> with your application ID -->
            <uses-permission
                android:name="com.huycuong.eventsocial.permission.MAPS_RECEIVE" android:protectionLevel="signature"/>
            <uses-sdk android:maxSdkVersion="19"
                android:minSdkVersion="14" android:targetSdkVersion="19"/>
            <application android:screenOrientation="portrait" android:theme="@style/_MyCustomTheme">
                <!-- Replace "PASTE YOUR GOOGLE MAPS API KEY HERE" with the Google API key you obtained -->
                <meta-data
                    android:name="com.google.android.maps.v2.API_KEY" android:value="MY API KEY"/>
                <meta-data
                    android:name="com.google.android.gms.version"
                    android:value="@integer/google_play_services_version" />
 
            </application>
        </manifest>
</android>

Viewing all articles
Browse latest Browse all 250

Latest Images

Trending Articles





Latest Images