I have an Ionic app that I'm trying to get to work in a Genymotion Virtual Device. Here's what's in my command prompt after I input the command "ionic run android"
Updated the hooks directory to have execute permissions
Running command: "c:\Program Files (x86)\nodejs\node.exe" c:\Users\username\git\mobile\hooks\after_prepare\010_add_platform_class.js c:/Users/username/git/mobile
add to body class: platform-android
Running command: c:\Users\username\git\mobile\platforms\android\cordova\run.bat
ANDROID_HOME=c:\Program Files (x86)\Android\android-sdk
JAVA_HOME=C:\Program Files (x86)\java\jdk1.8.0_45
WARNING: No target specified, deploying to device '192.168.56.101:5555'.
Running: c:\Users\username\git\mobile\platforms\android\gradlew cdvBuildDebug -b c:\Users\username\git\mobile\platforms\android\build.gradle -PcdvBuildArch=x86 -Dorg.gradle.daemon=true
:preBuild
:compileDebugNdk UP-TO-DATE
:preDebugBuild
:checkDebugManifest
:CordovaLib:compileLint
:CordovaLib:copyDebugLint UP-TO-DATE
:CordovaLib:mergeDebugProguardFiles UP-TO-DATE
:CordovaLib:preBuild
:CordovaLib:preDebugBuild
:CordovaLib:checkDebugManifest
:CordovaLib:prepareDebugDependencies
:CordovaLib:compileDebugAidl UP-TO-DATE
:CordovaLib:compileDebugRenderscript UP-TO-DATE
:CordovaLib:generateDebugBuildConfig UP-TO-DATE
:CordovaLib:generateDebugAssets UP-TO-DATE
:CordovaLib:mergeDebugAssets UP-TO-DATE
:CordovaLib:generateDebugResValues UP-TO-DATE
:CordovaLib:generateDebugResources UP-TO-DATE
:CordovaLib:packageDebugResources UP-TO-DATE
:CordovaLib:processDebugManifest UP-TO-DATE
:CordovaLib:processDebugResources UP-TO-DATE
:CordovaLib:generateDebugSources UP-TO-DATE
:CordovaLib:compileDebugJava UP-TO-DATE
:CordovaLib:processDebugJavaRes UP-TO-DATE
:CordovaLib:packageDebugJar UP-TO-DATE
:CordovaLib:compileDebugNdk UP-TO-DATE
:CordovaLib:packageDebugJniLibs UP-TO-DATE
:CordovaLib:packageDebugLocalJar UP-TO-DATE
:CordovaLib:packageDebugRenderscript UP-TO-DATE
:CordovaLib:bundleDebug UP-TO-DATE
:prepareAndroidCordovaLibUnspecifiedDebugLibrary UP-TO-DATE
:prepareDebugDependencies
:compileDebugAidl UP-TO-DATE
:compileDebugRenderscript UP-TO-DATE
:generateDebugBuildConfig UP-TO-DATE
:generateDebugAssets UP-TO-DATE
:mergeDebugAssets UP-TO-DATE
:generateDebugResValues UP-TO-DATE
:generateDebugResources UP-TO-DATE
:mergeDebugResources UP-TO-DATE
:processDebugManifest UP-TO-DATE
:processDebugResources UP-TO-DATE
:generateDebugSources UP-TO-DATE
:compileDebugJava UP-TO-DATE
:preDexDebug UP-TO-DATE
:dexDebug UP-TO-DATE
:processDebugJavaRes UP-TO-DATE
:validateDebugSigning
:packageDebug UP-TO-DATE
:zipalignDebug UP-TO-DATE
:assembleDebug UP-TO-DATE
:cdvBuildDebug UP-TO-DATE
BUILD SUCCESSFUL
Total time: 27.114 secs
Built the following apk(s):
c:\Users\username\git\mobile\platforms\android\build\outputs\apk\android-debug.apk
Using apk: c:\Users\username\git\mobile\platforms\android\build\outputs\apk\android-debug.apk
Installing app on device...
Launching application...
LAUNCH SUCCESS
I should also mention that after the commands finish, there IS a small change on my device. A small menu pops up, with three options, "Wallpaper", "Manage apps", and "System settings". However, the app does not launch, nor does it appear in the list of installed apps.
Fixed it on my own: turns out, the type of virtual device was the problem. I had been using a Google Galaxy Nexus 4.1.1 API 16 device, switching to Google Nexus 4 5.1.0 API 22 fixed it!
Related
D:\06 ANDROID\hwacademy2 - Copy\www>Ionic build android --release
Running command: "C:\Program Files\nodejs\node.exe" "D:\06 ANDROID\hwacademy2 - Copy\hooks\after_prepare\010_add_platform_class.js" "D:\06 ANDROID\hwacademy2 - Copy"
add to body class: platform-android
Running command: cmd "/s /c ""D:\06 ANDROID\hwacademy2 - Copy\platforms\android\cordova\build.bat" --release""
ANDROID_HOME=C:\Program Files (x86)\Android\android-sdk
JAVA_HOME=C:\Program Files\Java\jdk1.8.0_102
Running: D:\06 ANDROID\hwacademy2 - Copy\platforms\android\gradlew cdvBuildRelease -b D:\06 ANDROID\hwacademy2 - Copy\platforms\android\build.gradle -Dorg.gradle.daemon=true
:preBuild
:preReleaseBuild
:checkReleaseManifest
:CordovaLib:compileLint
:CordovaLib:copyReleaseLint
UP-TO-DATE
:CordovaLib:mergeReleaseProguardFiles
UP-TO-DATE
:CordovaLib:preBuild
:CordovaLib:preReleaseBuild
:CordovaLib:checkReleaseManifest
:CordovaLib:prepareReleaseDependencies
:CordovaLib:compileReleaseAidl
UP-TO-DATE
:CordovaLib:compileReleaseRenderscript
UP-TO-DATE
:CordovaLib:generateReleaseBuildConfig
UP-TO-DATE
:CordovaLib:generateReleaseAssets UP-TO-DATE
:CordovaLib:mergeReleaseAssets
UP-TO-DATE
:CordovaLib:generateReleaseResValues
UP-TO-DATE
:CordovaLib:generateReleaseResources
UP-TO-DATE
:CordovaLib:packageReleaseResources
UP-TO-DATE
:CordovaLib:processReleaseManifest
UP-TO-DATE
:CordovaLib:processReleaseResources
UP-TO-DATE
:CordovaLib:generateReleaseSources
UP-TO-DATE
:CordovaLib:compileReleaseJava
UP-TO-DATE
:CordovaLib:processReleaseJavaRes
UP-TO-DATE
:CordovaLib:packageReleaseJar
UP-TO-DATE
:CordovaLib:compileReleaseNdk
UP-TO-DATE
:CordovaLib:packageReleaseJniLibs
UP-TO-DATE
:CordovaLib:packageReleaseLocalJar
UP-TO-DATE
:CordovaLib:packageReleaseRenderscript
UP-TO-DATE
:CordovaLib:bundleRelease
UP-TO-DATE
:prepareAndroidCordovaLibUnspecifiedReleaseLibrary
UP-TO-DATE
:preDebugBuild
:CordovaLib:copyDebugLint UP-TO-DATE
:CordovaLib:mergeDebugProguardFiles
UP-TO-DATE
:CordovaLib:preDebugBuild
:CordovaLib:checkDebugManifest
:CordovaLib:prepareDebugDependencies
:CordovaLib:compileDebugAidl
UP-TO-DATE
:CordovaLib:compileDebugRenderscript
UP-TO-DATE
:CordovaLib:generateDebugBuildConfig
UP-TO-DATE
:CordovaLib:generateDebugAssets
UP-TO-DATE
:CordovaLib:mergeDebugAssets
UP-TO-DATE
:CordovaLib:generateDebugResValues
UP-TO-DATE
:CordovaLib:generateDebugResources UP-TO-DATE
:CordovaLib:packageDebugResources
UP-TO-DATE
:CordovaLib:processDebugManifest
UP-TO-DATE
:CordovaLib:processDebugResources
UP-TO-DATE
:CordovaLib:generateDebugSources UP-TO-DATE
:CordovaLib:compileDebugJava
UP-TO-DATE
:CordovaLib:processDebugJavaRes
UP-TO-DATE
:CordovaLib:packageDebugJar
UP-TO-DATE
:CordovaLib:compileDebugNdk
UP-TO-DATE
:CordovaLib:packageDebugJniLibs
UP-TO-DATE
:CordovaLib:packageDebugLocalJar
UP-TO-DATE
:CordovaLib:packageDebugRenderscript
UP-TO-DATE
:CordovaLib:bundleDebug
UP-TO-DATE
:prepareComAndroidSupportSupportV132340Library
UP-TO-DATE
:prepareComAndroidSupportSupportV42400Library
UP-TO-DATE
:prepareComGoogleAndroidGmsPlayServicesBase961Library
UP-TO-DATE
:prepareComGoogleAndroidGmsPlayServicesBasement961Library
UP-TO-DATE
:prepareComGoogleAndroidGmsPlayServicesGcm961Library
UP-TO-DATE
:prepareComGoogleAndroidGmsPlayServicesIid961Library
UP-TO-DATE
:prepareComGoogleAndroidGmsPlayServicesTasks961Library
UP-TO-DATE
:prepareReleaseDependencies
:compileReleaseAidl
UP-TO-DATE
:compileReleaseRenderscript
UP-TO-DATE
:generateReleaseBuildConfig
UP-TO-DATE
:generateReleaseAssets
UP-TO-DATE
:mergeReleaseAssets
UP-TO-DATE
:generateReleaseResValues
UP-TO-DATE
:generateReleaseResources
UP-TO-DATE
:mergeReleaseResources
:processReleaseManifest
UP-TO-DATE
:processReleaseResources
:generateReleaseSources
:compileReleaseJava
UP-TO-DATE
:lintVitalRelease
:compileReleaseNdk
UP-TO-DATE
:preDexRelease
UP-TO-DATE
:dexRelease
UP-TO-DATE
:processReleaseJavaRes
UP-TO-DATE
:packageRelease
:assembleRelease
:cdvBuildRelease
BUILD SUCCESSFUL
Total time: 10.174 secs
Built the following apk(s):
D:\06 ANDROID\hwacademy2 - Copy\platforms\android\build\outputs\apk\android-release-unsigned.apk
D:\06 ANDROID\hwacademy2 - Copy\www>
what miss about me :( ? this firts i build apk . someone help me please.
You can install and see the debug version of the App using the command :
ionic cordova build android ( ie. without the Release flag --release )
If you want to install and see the Release version of your App, then you need to sign your App using a Key.
Step 1 : Generate your Private Key ( if you have one, then discard this step ) :
keytool -genkey -v -keystore my-release-key.jks -keyalg RSA -keysize 2048 -validity 10000 -alias my-alias
Step 2 : Sign your APK
jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore my-release-key.jks android-release-unsigned.apk my-alias
Step 3 : Optimize your Apk using Zipalign
zipalign -v 4 android-release-unsigned.apk HelloWorld.apk
Refer this Link : https://ionicframework.com/docs/intro/deploying/ (Android Section)
The generate APK is unsigned (app-release-unsigned.apk). You can only install an unsigned APK on a emulator not a physical device.
BUILD SUCCESSFUL
This means that the APK has built, it will be located here:
Copy\platforms\android\build\outputs\apk\android-release-unsigned.apk
then to install run this through terminal (if mac):
adb install PASTEHEREYOURPATH.apk
The generate APK is unsigned (app-release-unsigned.apk). You can only install an unsigned APK on a emulator not a physical device.
I'm trying to run the init react-native project, and for some reason I get a 500 error.
here is the console log
Danny#DESKTOP-GIRS9GM /cygdrive/c/Users/Danny/Desktop/TestProject
$ react-native run-android
Scanning 557 folders for symlinks in C:\Users\Danny\Desktop\TestProject\node_modules (29ms)
JS server already running.
Building and installing the app on the device (cd android && gradlew.bat installDebug)...
Incremental java compilation is an incubating feature.
:app:preBuild UP-TO-DATE
:app:preDebugBuild UP-TO-DATE
:app:checkDebugManifest
:app:preReleaseBuild UP-TO-DATE
:app:prepareComAndroidSupportAppcompatV72301Library UP-TO-DATE
:app:prepareComAndroidSupportSupportV42301Library UP-TO-DATE
:app:prepareComFacebookFbuiTextlayoutbuilderTextlayoutbuilder100Library UP-TO-DATE
:app:prepareComFacebookFrescoDrawee101Library UP-TO-DATE
:app:prepareComFacebookFrescoFbcore101Library UP-TO-DATE
:app:prepareComFacebookFrescoFresco101Library UP-TO-DATE
:app:prepareComFacebookFrescoImagepipeline101Library UP-TO-DATE
:app:prepareComFacebookFrescoImagepipelineBase101Library UP-TO-DATE
:app:prepareComFacebookFrescoImagepipelineOkhttp3101Library UP-TO-DATE
:app:prepareComFacebookReactReactNative0471Library UP-TO-DATE
:app:prepareComFacebookSoloaderSoloader010Library UP-TO-DATE
:app:prepareOrgWebkitAndroidJscR174650Library UP-TO-DATE
:app:prepareDebugDependencies
:app:compileDebugAidl UP-TO-DATE
:app:compileDebugRenderscript UP-TO-DATE
:app:generateDebugBuildConfig UP-TO-DATE
:app:mergeDebugShaders UP-TO-DATE
:app:compileDebugShaders UP-TO-DATE
:app:generateDebugAssets UP-TO-DATE
:app:mergeDebugAssets UP-TO-DATE
:app:generateDebugResValues UP-TO-DATE
:app:generateDebugResources UP-TO-DATE
:app:mergeDebugResources UP-TO-DATE
:app:bundleDebugJsAndAssets SKIPPED
:app:processDebugManifest UP-TO-DATE
:app:processDebugResources UP-TO-DATE
:app:generateDebugSources UP-TO-DATE
:app:incrementalDebugJavaCompilationSafeguard UP-TO-DATE
:app:compileDebugJavaWithJavac UP-TO-DATE
:app:compileDebugNdk UP-TO-DATE
:app:compileDebugSources UP-TO-DATE
:app:transformClassesWithDexForDebug UP-TO-DATE
:app:mergeDebugJniLibFolders UP-TO-DATE
:app:transformNative_libsWithMergeJniLibsForDebug UP-TO-DATE
:app:processDebugJavaRes UP-TO-DATE
:app:transformResourcesWithMergeJavaResForDebug UP-TO-DATE
:app:validateSigningDebug
:app:packageDebug UP-TO-DATE
:app:assembleDebug UP-TO-DATE
:app:installDebug
Installing APK 'app-debug.apk' on 'Nexus_5X_API_26(AVD) - 8.0.0' for app:debug
Installed on 1 device.
BUILD SUCCESSFUL
Total time: 15.967 secs
Running C:\Users\Danny\AppData\Local\Android\sdk/platform-tools/adb -s emulator-5554 reverse tcp:8081 tcp:8081
Starting the app on emulator-5554 (C:\Users\Danny\AppData\Local\Android\sdk/platform-tools/adb -s emulator-5554 shell am start -n com.testproject/com.testproject.MainActivity)...
but on the device I'm getting this error(on a red screen),
The development server returned response error code: 500
URL: http://10.0.2.2:8081/index.android.bundle?platform=android&dev=true&hot=false&minify=false
Body:
{"message":"TransformError: C:\\Users\\Danny\\Desktop\\TestProject\\index.android.js: Unexpected token ) (While processing preset: \"C:\\\\Users\\\\Danny\\\\Desktop\\\\TestProject\\\\node_modules\\\\babel-preset-react-native\\\\index.js\")","type":"TransformError","lineNumber":0,"description":"","errors":[{"description":"","lineNumber":0}]}
processBundleResult
BundleDownloader.java:170
access$100
BundleDownloader.java:39
onResponse
BundleDownloader.java:139
execute
RealCall.java:135
run
NamedRunnable.java:32
runWorker
ThreadPoolExecutor.java:1162
run
ThreadPoolExecutor.java:636
run
Thread.java:764
and this is the message from the window that gets open (when i run react-native run-android)
error: bundling failed: "TransformError: C:\\Users\\Danny\\Desktop\\TestProject\\index.android.js: Unexpected token ) (While processing preset: \"C:\\\\Users\\\\Danny\\\\Desktop\\\\TestProject\\\\node_modules\\\\babel-preset-react-native\\\\index.js\")"
I dont get it, how come the init project of react-native comes with errors ? or I'm doing something wrong ? im not sure anymore, thanks!
I think you are using a new version of babel-preset-react-native library and there is an unsupported trailing commas on that new version.
You can install the previous version of the library:
npm uninstall babel-preset-react-native
npm install babel-preset-react-native#2.1.0
Edit - you can see the problem on playframework repository: issue#15513
I have a meteor app that I want to test on my android device. The problem is that 95% of the time the app hangs at "Starting app on android device".
Logs:
Running Cordova app for platform Android with options --device
ANDROID_HOME=/home/john/Android/android-sdk-linux
JAVA_HOME=/usr/lib/jvm/java-8-oracle
Starting a new Gradle Daemon for this build (subsequent builds will be faster).
I20161214-11:04:25.063(2)? Kadira: completed instrumenting the app
I20161214-11:04:25.410(2) (percolate_migrations.js:106) Migrations: Not migrating, already at version 2
=> Started your app.
=> App running at: http://localhost:3000/
I20161214-11:04:25.965(2)? Kadira: successfully authenticated
nulltarting app on Android Device -
embeddeding app on Android Device -
org.xwalk:xwalk_core_library:17+e /
Incremental java compilation is an incubating feature.
UP-TO-DATE app on Android Device -
:preBuild UP-TO-DATE
:preArmv7DebugBuild UP-TO-DATE
:checkArmv7DebugManifest
:preX86DebugBuild UP-TO-DATE
:CordovaLib:preBuild UP-TO-DATE
:CordovaLib:preDebugBuild UP-TO-DATE
:CordovaLib:compileDebugNdk UP-TO-DATE
:CordovaLib:compileLint
:CordovaLib:copyDebugLint UP-TO-DATE
UP-TO-DATE app on Android Device -
UP-TO-DATE app on Android Device -
:CordovaLib:checkDebugManifest
:CordovaLib:prepareDebugDependencies -
UP-TO-DATE app on Android Device \
:CordovaLib:generateDebugResValues UP-TO-DATE
:CordovaLib:generateDebugResources UP-TO-DATE
:CordovaLib:packageDebugResources UP-TO-DATE
UP-TO-DATEg app on Android Device \
:CordovaLib:generateDebugBuildConfig UP-TO-DATE
:CordovaLib:mergeDebugShaders UP-TO-DATE
:CordovaLib:compileDebugShaders UP-TO-DATE
:CordovaLib:generateDebugAssets UP-TO-DATE
:CordovaLib:mergeDebugAssets UP-TO-DATE
:CordovaLib:processDebugManifest UP-TO-DATE
:CordovaLib:processDebugResources UP-TO-DATE \
:CordovaLib:generateDebugSources UP-TO-DATE
:CordovaLib:incrementalDebugJavaCompilationSafeguard UP-TO-DATE
UP-TO-DATE app on Android Device \
:CordovaLib:processDebugJavaRes UP-TO-DATE
:CordovaLib:transformResourcesWithMergeJavaResForDebug UP-TO-DATE
UP-TO-DATE app on Android Device |ncLibJarsForDebug
:CordovaLib:mergeDebugJniLibFolders UP-TO-DATE
UP-TO-DATE app on Android Device |bsForDebug
:CordovaLib:transformNative_libsWithSyncJniLibsForDebug UP-TO-DATE
:CordovaLib:bundleDebug UP-TO-DATE
:prepareAndroidCordovaLibUnspecifiedDebugLibrary UP-TO-DATE
:preArmv7ReleaseBuild UP-TO-DATE
:preX86ReleaseBuild UP-TO-DATEice |
:CordovaLib:preReleaseBuild UP-TO-DATE
:CordovaLib:compileReleaseNdk UP-TO-DATE
:CordovaLib:copyReleaseLint UP-TO-DATE
:CordovaLib:mergeReleaseProguardFiles UP-TO-DATE
:CordovaLib:packageReleaseRenderscript UP-TO-DATE
:CordovaLib:checkReleaseManifest
Starting app on Android Device |
:CordovaLib:compileReleaseRenderscript UP-TO-DATE
:CordovaLib:generateReleaseResValues UP-TO-DATE
:CordovaLib:generateReleaseResources UP-TO-DATE
UP-TO-DATE:packageReleaseResources Starting app on Android Device |
:CordovaLib:compileReleaseAidl UP-TO-DATE
UP-TO-DATE app on Android Device /
:CordovaLib:mergeReleaseShaders UP-TO-DATE
:CordovaLib:compileReleaseShaders UP-TO-DATE
:CordovaLib:generateReleaseAssets UP-TO-DATE
:CordovaLib:mergeReleaseAssets UP-TO-DATE
:CordovaLib:processReleaseManifest UP-TO-DATE
UP-TO-DATE app on Android Device /
:CordovaLib:generateReleaseSources UP-TO-DATE
:CordovaLib:incrementalReleaseJavaCompilationSafeguard UP-TO-DATE
UP-TO-DATE app on Android Device /
:CordovaLib:processReleaseJavaRes UP-TO-DATE
:CordovaLib:transformResourcesWithMergeJavaResForRelease UP-TO-DATE
:CordovaLib:transformClassesAndResourcesWithSyncLibJarsForRelease UP-TO-DATE
:CordovaLib:mergeReleaseJniLibFolders UP-TO-DATE
:CordovaLib:transformNative_libsWithMergeJniLibsForRelease UP-TO-DATE
:CordovaLib:transformNative_libsWithSyncJniLibsForRelease UP-TO-DATE
:CordovaLib:bundleRelease UP-TO-DATE
UP-TO-DATEAndroidSupportSupportCompat2501Library
UP-TO-DATEAndroidSupportSupportCoreUi2501Library Starting app on Android Device /
:prepareComAndroidSupportSupportCoreUtils2501Library UP-TO-DATE
:prepareComAndroidSupportSupportFragment2501Library UP-TO-DATE
UP-TO-DATE app on Android Device -1Library
:prepareComAndroidSupportSupportV42501Library UP-TO-DATE
UP-TO-DATE app on Android Device -rary
:prepareArmv7DebugDependencies
:compileArmv7DebugAidl UP-TO-DATE
UP-TO-DATE app on Android Device -
UP-TO-DATE app on Android Device \
:mergeArmv7DebugShaders UP-TO-DATE
:compileArmv7DebugShaders UP-TO-DATE
:generateArmv7DebugAssets UP-TO-DATE
:mergeArmv7DebugAssets UP-TO-DATE
Starting app on Android Device \
:generateArmv7DebugResValues UP-TO-DATE
UP-TO-DATE app on Android Device \
UP-TO-DATE app on Android Device \
:processArmv7DebugManifest UP-TO-DATE
:processArmv7DebugResources UP-TO-DATE
:generateArmv7DebugSources UP-TO-DATE \
:incrementalArmv7DebugJavaCompilationSafeguard UP-TO-DATE
UP-TO-DATE app on Android Device |
:compileArmv7DebugNdk UP-TO-DATE
:compileArmv7DebugSources UP-TO-DATE
:prePackageMarkerForArmv7Debug
UP-TO-DATE app on Android Device |
:mergeArmv7DebugJniLibFolders UP-TO-DATE
UP-TO-DATE app on Android Device |ebug
:processArmv7DebugJavaRes UP-TO-DATE
:transformResourcesWithMergeJavaResForArmv7Debug UP-TO-DATE
:validateDebugSigning
:packageArmv7Debug UP-TO-DATE
UP-TO-DATE app on Android Device |
:assembleArmv7Debug UP-TO-DATE
:cdvBuildDebug UP-TO-DATE
BUILD SUCCESSFUL
Total time: 17.072 secs
Built the following apk(s): evice |
/home/john/WebApps/agily-app/services/web/.meteor/local/cordova-build/platforms/android/build/outputs/apk/android-armv7-debug.apk
Using apk: /home/john/WebApps/agily-app/services/web/.meteor/local/cordova-build/platforms/android/build/outputs/apk/android-armv7-debug.apk
Package name: com.idkid0bbrlatmhkpu0ii
Starting app on Android Device \
I have tried different solutions: reset meteor, reconnect device, restarted adb, updated adb, updated gradle.
Has anyone had this problem and is there a solution?
Thanks!
I am trying to create an unsigned apk that I can share internally for testing. On Android Studio, I did the following :
Click Build -> Clean Project
Build -> Make Project
The build was successful with the following message :
Configuration on demand is an incubating feature. :app:preBuild
UP-TO-DATE :app:preDebugBuild UP-TO-DATE :app:checkDebugManifest
:app:preReleaseBuild UP-TO-DATE :volley:compileLint
:volley:copyReleaseLint UP-TO-DATE :volley:mergeReleaseProguardFiles
UP-TO-DATE :volley:preBuild UP-TO-DATE :volley:preReleaseBuild
UP-TO-DATE :volley:checkReleaseManifest
:volley:prepareReleaseDependencies :volley:compileReleaseAidl
UP-TO-DATE :volley:compileReleaseRenderscript UP-TO-DATE
:volley:generateReleaseBuildConfig UP-TO-DATE
:volley:generateReleaseAssets UP-TO-DATE :volley:mergeReleaseAssets
UP-TO-DATE :volley:generateReleaseResValues UP-TO-DATE
:volley:generateReleaseResources UP-TO-DATE
:volley:packageReleaseResources UP-TO-DATE
:volley:processReleaseManifest UP-TO-DATE
:volley:processReleaseResources UP-TO-DATE
:volley:generateReleaseSources UP-TO-DATE
:volley:processReleaseJavaRes UP-TO-DATE
:volley:compileReleaseJavaWithJavac UP-TO-DATE
:volley:packageReleaseJar UP-TO-DATE :volley:compileReleaseNdk
UP-TO-DATE :volley:packageReleaseJniLibs UP-TO-DATE
:volley:packageReleaseLocalJar UP-TO-DATE
:volley:packageReleaseRenderscript UP-TO-DATE :volley:bundleRelease
UP-TO-DATE :app:prepareBluetoothGattVolleyUnspecifiedLibrary
UP-TO-DATE :app:prepareComAndroidSupportAppcompatV72301Library
UP-TO-DATE :app:prepareComAndroidSupportDesign2301Library UP-TO-DATE
:app:prepareComAndroidSupportSupportV42301Library UP-TO-DATE
:app:prepareDebugDependencies :app:compileDebugAidl UP-TO-DATE
:app:compileDebugRenderscript UP-TO-DATE :app:generateDebugBuildConfig
UP-TO-DATE :app:generateDebugAssets UP-TO-DATE :app:mergeDebugAssets
UP-TO-DATE :app:generateDebugResValues UP-TO-DATE
:app:generateDebugResources UP-TO-DATE :app:mergeDebugResources
UP-TO-DATE :app:processDebugManifest UP-TO-DATE
:app:processDebugResources UP-TO-DATE :app:generateDebugSources
UP-TO-DATE :app:preDebugAndroidTestBuild UP-TO-DATE
:app:prepareDebugAndroidTestDependencies
:app:compileDebugAndroidTestAidl UP-TO-DATE
:app:processDebugAndroidTestManifest UP-TO-DATE
:app:compileDebugAndroidTestRenderscript UP-TO-DATE
:app:generateDebugAndroidTestBuildConfig UP-TO-DATE
:app:generateDebugAndroidTestAssets UP-TO-DATE
:app:mergeDebugAndroidTestAssets UP-TO-DATE
:app:generateDebugAndroidTestResValues UP-TO-DATE
:app:generateDebugAndroidTestResources UP-TO-DATE
:app:mergeDebugAndroidTestResources UP-TO-DATE
:app:processDebugAndroidTestResources UP-TO-DATE
:app:generateDebugAndroidTestSources UP-TO-DATE
:app:processDebugJavaRes UP-TO-DATE :app:compileDebugJavaWithJavac
UP-TO-DATE :app:compileDebugNdk UP-TO-DATE :app:compileDebugSources
UP-TO-DATE :app:processDebugAndroidTestJavaRes UP-TO-DATE
:app:compileDebugAndroidTestJavaWithJavac UP-TO-DATE
:app:compileDebugAndroidTestNdk UP-TO-DATE
:app:compileDebugAndroidTestSources UP-TO-DATE :volley:preDebugBuild
UP-TO-DATE :volley:checkDebugManifest :volley:prepareDebugDependencies
:volley:compileDebugAidl UP-TO-DATE :volley:compileDebugRenderscript
UP-TO-DATE :volley:generateDebugBuildConfig UP-TO-DATE
:volley:generateDebugAssets UP-TO-DATE :volley:mergeDebugAssets
UP-TO-DATE :volley:generateDebugResValues UP-TO-DATE
:volley:generateDebugResources UP-TO-DATE
:volley:packageDebugResources UP-TO-DATE :volley:processDebugManifest
UP-TO-DATE :volley:processDebugResources UP-TO-DATE
:volley:generateDebugSources UP-TO-DATE
:volley:preDebugAndroidTestBuild UP-TO-DATE
:volley:prepareDebugAndroidTestDependencies
:volley:compileDebugAndroidTestAidl UP-TO-DATE :volley:copyDebugLint
UP-TO-DATE :volley:mergeDebugProguardFiles UP-TO-DATE
:volley:processDebugJavaRes UP-TO-DATE
:volley:compileDebugJavaWithJavac UP-TO-DATE :volley:packageDebugJar
UP-TO-DATE :volley:compileDebugNdk UP-TO-DATE
:volley:packageDebugJniLibs UP-TO-DATE :volley:packageDebugLocalJar
UP-TO-DATE :volley:packageDebugRenderscript UP-TO-DATE
:volley:bundleDebug UP-TO-DATE :volley:compileDebugSources UP-TO-DATE
:volley:assembleDebug UP-TO-DATE
:volley:processDebugAndroidTestManifest UP-TO-DATE
:volley:compileDebugAndroidTestRenderscript UP-TO-DATE
:volley:generateDebugAndroidTestBuildConfig UP-TO-DATE
:volley:generateDebugAndroidTestAssets UP-TO-DATE
:volley:mergeDebugAndroidTestAssets UP-TO-DATE
:volley:generateDebugAndroidTestResValues UP-TO-DATE
:volley:generateDebugAndroidTestResources UP-TO-DATE
:volley:mergeDebugAndroidTestResources UP-TO-DATE
:volley:processDebugAndroidTestResources UP-TO-DATE
:volley:generateDebugAndroidTestSources UP-TO-DATE
:volley:processDebugAndroidTestJavaRes UP-TO-DATE
:volley:compileDebugAndroidTestJavaWithJavac UP-TO-DATE
:volley:compileDebugAndroidTestNdk UP-TO-DATE
:volley:compileDebugAndroidTestSources UP-TO-DATE
BUILD SUCCESSFUL
Total time: 3.739 secs
However, I am unable to locate the apk. I tried looking in the app/outputs directory of my project, but that directory has just one folder called logs/ and no other folder. Any suggestions would help.
make project does not make an unsigned apk. I have made the same mistake What you can do is build the unsigned apk using gradle. Just follow the following steps (you can do it faster than it took me to type the steps):
To the left of the run button you should see a drop down list saying "app" with an android logo to the left of it. click it.
click on "Edit Configurations"
Click the green plus button on top left and select "Gradle"
Where it says name, enter what ever you want but leave the rest blank. I set mine as "Assemble"
Below where it says "Before launch: Gradle task" click the green plus sign and select "Run Gradle Task"
Where it says "tasks" type in "assemble"
Press okay and okay to save it
Press the run button. the apk will appear in YourProjectFolderName>app>build>outputs>apk
to change the run button back to running your app via adb just click the drop down button from step 1 again and select "app"
Also note that you cannot install a unsigned APK on a physical device. whether you're emailing the apk, copying it to the phone storage over usb, or any other method it will NOT let you install it. You will either need to create a signed apk (its very simple) or connect each test device to your computer and install it through adb.
I am trying android studio for the first time.
I have connected external android device via USB (debugging device settings are done in android device). I click on run button with selection as USB device.
The Run console shows this
Waiting for device.
Target device: iball-3g_q1035-0123456789ABCDEF
Whereas my gradle console shows this
Executing tasks: [:app:assembleDebug]
Configuration on demand is an incubating feature.
:app:preBuild UP-TO-DATE
:app:preDebugBuild UP-TO-DATE
:app:compileDebugNdk UP-TO-DATE
:app:checkDebugManifest
:app:preReleaseBuild UP-TO-DATE
:app:prepareComAndroidSupportAppcompatV72200Library UP-TO-DATE
:app:prepareComAndroidSupportSupportV42200Library UP-TO-DATE
:app:prepareDebugDependencies
:app:compileDebugAidl UP-TO-DATE
:app:compileDebugRenderscript UP-TO-DATE
:app:generateDebugBuildConfig UP-TO-DATE
:app:generateDebugAssets UP-TO-DATE
:app:mergeDebugAssets UP-TO-DATE
:app:generateDebugResValues UP-TO-DATE
:app:generateDebugResources UP-TO-DATE
:app:mergeDebugResources UP-TO-DATE
:app:processDebugManifest UP-TO-DATE
:app:processDebugResources UP-TO-DATE
:app:generateDebugSources UP-TO-DATE
:app:compileDebugJava UP-TO-DATE
:app:preDexDebug UP-TO-DATE
:app:dexDebug UP-TO-DATE
:app:processDebugJavaRes UP-TO-DATE
:app:validateDebugSigning
:app:packageDebug UP-TO-DATE
:app:zipalignDebug UP-TO-DATE
:app:assembleDebug UP-TO-DATE
BUILD SUCCESSFUL
Total time: 1.292 secs
But my application does not start on the device. Can somebody please let me know where i am doing mistake?(ps : application works perfectly on the eclipse)