Obsolete
Status Update
Comments
ss...@google.com <ss...@google.com>
co...@gmail.com <co...@gmail.com> #2
[Comment deleted]
[Deleted User] <[Deleted User]> #3
Here are additional infos I can provide:
So I tried to build from the Android Studio 1.5 terminal and here is what has been done:
C:\Users\me\Documents\GitHub\MyApp>.\gradlew.bat :app:assembleDebug
Downloadinghttps://services.gradle.org/distributions/gradle-2.10-all.zip
............................
Unzipping C:\Users\me.gradle\wrapper\dists\gradle-2.10-all\5b6kqrscumh9p4evkkemdk57ad\gradle-2.10-all.zip to C:\Users\me.gradle\wrapper\dists\gradle-2.10-all\5b6kqrscumh9p4evkkemdk57ad
Downloadhttps://jcenter.bintray.com/org/ow2/asm/asm/5.0.3/asm-5.0.3.pom
Downloadhttps://jcenter.bintray.com/org/ow2/asm/asm-parent/5.0.3/asm-parent-5.0.3.pom
Downloadhttps://jcenter.bintray.com/org/ow2/ow2/1.3/ow2-1.3.pom
Downloadhttps://jcenter.bintray.com/net/sf/proguard/proguard-gradle/5.2.1/proguard-gradle-5.2.1.pom
Downloadhttps://jcenter.bintray.com/net/sf/proguard/proguard-parent/5.2.1/proguard-parent-5.2.1.pom
Downloadhttps://jcenter.bintray.com/org/jacoco/org.jacoco.core/0.7.4.201502262128/org.jacoco.core-0.7.4.201502262128.pom
Downloadhttps://jcenter.bintray.com/org/jacoco/org.jacoco.build/0.7.4.201502262128/org.jacoco.build-0.7.4.201502262128.pom
Downloadhttps://jcenter.bintray.com/org/antlr/antlr/3.5.2/antlr-3.5.2.pom
Downloadhttps://jcenter.bintray.com/org/antlr/antlr-master/3.5.2/antlr-master-3.5.2.pom
Downloadhttps://jcenter.bintray.com/org/sonatype/oss/oss-parent/9/oss-parent-9.pom
Downloadhttps://jcenter.bintray.com/com/squareup/javawriter/2.5.0/javawriter-2.5.0.pom
Downloadhttps://jcenter.bintray.com/org/bouncycastle/bcpkix-jdk15on/1.48/bcpkix-jdk15on-1.48.pom
Downloadhttps://jcenter.bintray.com/org/bouncycastle/bcprov-jdk15on/1.48/bcprov-jdk15on-1.48.pom
Downloadhttps://jcenter.bintray.com/org/ow2/asm/asm-tree/5.0.3/asm-tree-5.0.3.pom
Downloadhttps://jcenter.bintray.com/org/eclipse/jdt/core/compiler/ecj/4.4.2/ecj-4.4.2.pom
Downloadhttps://jcenter.bintray.com/com/google/guava/guava/17.0/guava-17.0.pom
Downloadhttps://jcenter.bintray.com/com/google/guava/guava-parent/17.0/guava-parent-17.0.pom
Downloadhttps://jcenter.bintray.com/com/tunnelvisionlabs/antlr4/4.5/antlr4-4.5.pom
Downloadhttps://jcenter.bintray.com/com/tunnelvisionlabs/antlr4-master/4.5/antlr4-master-4.5.pom
Downloadhttps://jcenter.bintray.com/commons-io/commons-io/2.4/commons-io-2.4.pom
Downloadhttps://jcenter.bintray.com/org/apache/commons/commons-parent/25/commons-parent-25.pom
Downloadhttps://jcenter.bintray.com/org/apache/apache/9/apache-9.pom
Downloadhttps://jcenter.bintray.com/com/googlecode/juniversalchardet/juniversalchardet/1.0.3/juniversalchardet-1.0.3.pom
Downloadhttps://jcenter.bintray.com/net/sf/proguard/proguard-base/5.2.1/proguard-base-5.2.1.pom
Downloadhttps://jcenter.bintray.com/org/ow2/asm/asm-debug-all/5.0.1/asm-debug-all-5.0.1.pom
Downloadhttps://jcenter.bintray.com/org/ow2/asm/asm-parent/5.0.1/asm-parent-5.0.1.pom
Downloadhttps://jcenter.bintray.com/org/antlr/antlr-runtime/3.5.2/antlr-runtime-3.5.2.pom
Downloadhttps://jcenter.bintray.com/org/antlr/ST4/4.0.8/ST4-4.0.8.pom
Downloadhttps://jcenter.bintray.com/org/apache/commons/commons-compress/1.8.1/commons-compress-1.8.1.pom
Downloadhttps://jcenter.bintray.com/org/apache/httpcomponents/httpclient/4.1.1/httpclient-4.1.1.pom
Downloadhttps://jcenter.bintray.com/org/apache/httpcomponents/httpcomponents-client/4.1.1/httpcomponents-client-4.1.1.pom
Downloadhttps://jcenter.bintray.com/org/apache/httpcomponents/project/4.1.1/project-4.1.1.pom
Downloadhttps://jcenter.bintray.com/org/apache/httpcomponents/httpmime/4.1/httpmime-4.1.pom
Downloadhttps://jcenter.bintray.com/org/apache/httpcomponents/httpcomponents-client/4.1/httpcomponents-client-4.1.pom
Downloadhttps://jcenter.bintray.com/org/ow2/asm/asm-analysis/5.0.3/asm-analysis-5.0.3.pom
Downloadhttps://jcenter.bintray.com/com/tunnelvisionlabs/antlr4-runtime/4.5/antlr4-runtime-4.5.pom
Downloadhttps://jcenter.bintray.com/com/tunnelvisionlabs/antlr4-annotations/4.5/antlr4-annotations-4.5.pom
Downloadhttps://jcenter.bintray.com/com/intellij/annotations/12.0/annotations-12.0.pom
Downloadhttps://jcenter.bintray.com/org/apache/httpcomponents/httpcore/4.1/httpcore-4.1.pom
Downloadhttps://jcenter.bintray.com/org/apache/httpcomponents/httpcomponents-core/4.1/httpcomponents-core-4.1.pom
Downloadhttps://jcenter.bintray.com/commons-logging/commons-logging/1.1.1/commons-logging-1.1.1.pom
Downloadhttps://jcenter.bintray.com/org/apache/commons/commons-parent/5/commons-parent-5.pom
Downloadhttps://jcenter.bintray.com/org/apache/apache/4/apache-4.pom
Downloadhttps://jcenter.bintray.com/commons-codec/commons-codec/1.4/commons-codec-1.4.pom
Downloadhttps://jcenter.bintray.com/org/apache/commons/commons-parent/11/commons-parent-11.pom
Downloadhttps://jcenter.bintray.com/com/android/tools/external/lombok/lombok-ast/0.2.3/lombok-ast-0.2.3.pom
Downloadhttps://jcenter.bintray.com/org/abego/treelayout/org.abego.treelayout.core/1.0.1/org.abego.treelayout.core-1.0.1.pom
Downloadhttps://jcenter.bintray.com/org/ow2/asm/asm/5.0.3/asm-5.0.3.jar
Downloadhttps://jcenter.bintray.com/net/sf/proguard/proguard-gradle/5.2.1/proguard-gradle-5.2.1.jar
Downloadhttps://jcenter.bintray.com/org/jacoco/org.jacoco.core/0.7.4.201502262128/org.jacoco.core-0.7.4.201502262128.jar
Downloadhttps://jcenter.bintray.com/org/antlr/antlr/3.5.2/antlr-3.5.2.jar
Downloadhttps://jcenter.bintray.com/com/squareup/javawriter/2.5.0/javawriter-2.5.0.jar
Downloadhttps://jcenter.bintray.com/org/bouncycastle/bcpkix-jdk15on/1.48/bcpkix-jdk15on-1.48.jar
Downloadhttps://jcenter.bintray.com/org/bouncycastle/bcprov-jdk15on/1.48/bcprov-jdk15on-1.48.jar
Downloadhttps://jcenter.bintray.com/org/ow2/asm/asm-tree/5.0.3/asm-tree-5.0.3.jar
Downloadhttps://jcenter.bintray.com/org/eclipse/jdt/core/compiler/ecj/4.4.2/ecj-4.4.2.jar
Downloadhttps://jcenter.bintray.com/com/google/guava/guava/17.0/guava-17.0.jar
Downloadhttps://jcenter.bintray.com/com/tunnelvisionlabs/antlr4/4.5/antlr4-4.5.jar
Downloadhttps://jcenter.bintray.com/commons-io/commons-io/2.4/commons-io-2.4.jar
Downloadhttps://jcenter.bintray.com/com/googlecode/juniversalchardet/juniversalchardet/1.0.3/juniversalchardet-1.0.3.jar
Downloadhttps://jcenter.bintray.com/net/sf/proguard/proguard-base/5.2.1/proguard-base-5.2.1.jar
Downloadhttps://jcenter.bintray.com/org/ow2/asm/asm-debug-all/5.0.1/asm-debug-all-5.0.1.jar
Downloadhttps://jcenter.bintray.com/org/antlr/antlr-runtime/3.5.2/antlr-runtime-3.5.2.jar
Downloadhttps://jcenter.bintray.com/org/antlr/ST4/4.0.8/ST4-4.0.8.jar
Downloadhttps://jcenter.bintray.com/com/google/code/gson/gson/2.2.4/gson-2.2.4.jar
Downloadhttps://jcenter.bintray.com/org/apache/commons/commons-compress/1.8.1/commons-compress-1.8.1.jar
Downloadhttps://jcenter.bintray.com/org/apache/httpcomponents/httpclient/4.1.1/httpclient-4.1.1.jar
Downloadhttps://jcenter.bintray.com/org/apache/httpcomponents/httpmime/4.1/httpmime-4.1.jar
Downloadhttps://jcenter.bintray.com/org/ow2/asm/asm-analysis/5.0.3/asm-analysis-5.0.3.jar
Downloadhttps://jcenter.bintray.com/com/tunnelvisionlabs/antlr4-runtime/4.5/antlr4-runtime-4.5.jar
Downloadhttps://jcenter.bintray.com/com/tunnelvisionlabs/antlr4-annotations/4.5/antlr4-annotations-4.5.jar
Downloadhttps://jcenter.bintray.com/com/intellij/annotations/12.0/annotations-12.0.jar
Downloadhttps://jcenter.bintray.com/org/apache/httpcomponents/httpcore/4.1/httpcore-4.1.jar
Downloadhttps://jcenter.bintray.com/commons-logging/commons-logging/1.1.1/commons-logging-1.1.1.jar
Downloadhttps://jcenter.bintray.com/commons-codec/commons-codec/1.4/commons-codec-1.4.jar
Downloadhttps://jcenter.bintray.com/com/android/tools/external/lombok/lombok-ast/0.2.3/lombok-ast-0.2.3.jar
Downloadhttps://jcenter.bintray.com/org/abego/treelayout/org.abego.treelayout.core/1.0.1/org.abego.treelayout.core-1.0.1.jar
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:prepareComAndroidSupportAnimatedVectorDrawable2411Library UP-TO-DATE
:app:prepareComAndroidSupportAppcompatV72411Library UP-TO-DATE
:app:prepareComAndroidSupportCardviewV72340Library UP-TO-DATE
:app:prepareComAndroidSupportCustomtabs2340Library UP-TO-DATE
:app:prepareComAndroidSupportSupportV42411Library UP-TO-DATE
:app:prepareComAndroidSupportSupportVectorDrawable2411Library UP-TO-DATE
:app:prepareComFacebookAndroidFacebookAndroidSdk4140Library UP-TO-DATE
:app:prepareComGithubMKergallOsmbonuspackV581Library UP-TO-DATE
:app:prepareComGoogleAndroidGmsPlayServicesAppindexing921Library UP-TO-DATE
:app:prepareComGoogleAndroidGmsPlayServicesBase921Library UP-TO-DATE
:app:prepareComGoogleAndroidGmsPlayServicesBasement921Library UP-TO-DATE
:app:prepareComGoogleAndroidGmsPlayServicesLocation921Library UP-TO-DATE
:app:prepareComGoogleAndroidGmsPlayServicesTasks921Library UP-TO-DATE
:app:prepareComGoogleFirebaseFirebaseAnalytics921Library UP-TO-DATE
:app:prepareComGoogleFirebaseFirebaseAnalyticsImpl921Library UP-TO-DATE
:app:prepareComGoogleFirebaseFirebaseCommon921Library UP-TO-DATE
:app:prepareComGoogleFirebaseFirebaseCore921Library UP-TO-DATE
:app:prepareComGoogleFirebaseFirebaseIid921Library UP-TO-DATE
:app:prepareComGoogleFirebaseFirebaseMessaging921Library UP-TO-DATE
:app:prepareMeDm7BarcodescannerCore184Library UP-TO-DATE
:app:prepareMeDm7BarcodescannerZxing184Library UP-TO-DATE
:app:prepareOrgOsmdroidOsmdroidAndroid52Library 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:processDebugGoogleServices
Parsing json file: C:\Users\me\Documents\GitHub\MyApp\app\google-services.json
:app:generateDebugResources
:app:mergeDebugResources UP-TO-DATE
:app:processDebugManifest UP-TO-DATE
:app:processDebugResources UP-TO-DATE
:app:generateDebugSources UP-TO-DATE
:app:incrementalDebugJavaCompilationSafeguard
:app:compileDebugJavaWithJavac
:app:compileDebugJavaWithJavac - is not incremental (e.g. outputs have changed, no previous execution, etc.).
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: C:\Users\me\Documents\GitHub\MyApp\app\src\main\java\com\my\package\Fragment_downloadMaps.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
:app:compileDebugNdk UP-TO-DATE
:app:compileDebugSources
:app:prePackageMarkerForDebug
:app:transformClassesWithDexForDebug
Result compacted from 8326,4KiB to 6356,0KiB to save 1970,4KiB
Merged dex #1 (15 defs/26,9KiB)
Merged dex #2 (36 defs/34,3KiB)
Merged dex #3 (5 defs/15,3KiB)
Merged dex #4 (355 defs/574,2KiB)
Merged dex #5 (13 defs/22,9KiB)
Merged dex #6 (21 defs/21,2KiB)
Merged dex #7 (819 defs/997,1KiB)
Merged dex #8 (17 defs/48,5KiB)
Merged dex #9 (558 defs/621,0KiB)
Merged dex #10 (80 defs/147,1KiB)
Merged dex #11 (81 defs/68,0KiB)
Merged dex #12 (265 defs/237,9KiB)
Merged dex #13 (530 defs/522,3KiB)
Merged dex #14 (109 defs/90,5KiB)
Merged dex #15 (29 defs/20,5KiB)
Merged dex #16 (3 defs/3,6KiB)
Merged dex #17 (115 defs/202,5KiB)
Merged dex #18 (22 defs/23,4KiB)
Merged dex #19 (15 defs/33,5KiB)
Merged dex #20 (10 defs/22,6KiB)
Merged dex #21 (110 defs/178,4KiB)
Merged dex #22 (217 defs/459,2KiB)
Merged dex #23 (177 defs/288,0KiB)
Merged dex #24 (264 defs/481,2KiB)
Merged dex #25 (289 defs/589,8KiB)
Merged dex #26 (165 defs/171,2KiB)
Merged dex #27 (363 defs/280,8KiB)
Merged dex #28 (12 defs/19,4KiB)
Merged dex #29 (4 defs/7,1KiB)
Merged dex #30 (175 defs/299,9KiB)
Merged dex #31 (34 defs/67,9KiB)
Merged dex #32 (201 defs/282,5KiB)
Merged dex #33 (46 defs/7,4KiB)
Result is 5155 defs/6356,0KiB. Took 0,7s
:app:mergeDebugJniLibFolders UP-TO-DATE
:app:transformNative_libsWithMergeJniLibsForDebug UP-TO-DATE
:app:processDebugJavaRes UP-TO-DATE
:app:transformResourcesWithMergeJavaResForDebug UP-TO-DATE
:app:validateDebugSigning
:app:packageDebug
:app:zipalignDebug
:app:assembleDebug
BUILD SUCCESSFUL
And I installed the resulting package
adb -s xxxxxxx install .\app\build\outputs\apk\app-debug.apk
And the application receives data message in background.
Then I tried the same from Android Studio 2.1.2 terminal:
And I installed the resulting package
adb -s xxxxxxx install .\app\build\outputs\apk\app-debug.apk
And the application receives data message in background.
Then I tried to rebuild/install the app from Android Studio 2.1.2 ide
And the application DOES NOT receive data message in background.
Anyway, what I see from my side is the development environment installed by Android Studio and everything installed to build an application from the source code.
And the tests I made prove that something installed beside sdk, build-tools and Java modify the build.
So I tried to build from the Android Studio 1.5 terminal and here is what has been done:
C:\Users\me\Documents\GitHub\MyApp>.\gradlew.bat :app:assembleDebug
Downloading
............................
Unzipping C:\Users\me.gradle\wrapper\dists\gradle-2.10-all\5b6kqrscumh9p4evkkemdk57ad\gradle-2.10-all.zip to C:\Users\me.gradle\wrapper\dists\gradle-2.10-all\5b6kqrscumh9p4evkkemdk57ad
Download
Download
Download
Download
Download
Download
Download
Download
Download
Download
Download
Download
Download
Download
Download
Download
Download
Download
Download
Download
Download
Download
Download
Download
Download
Download
Download
Download
Download
Download
Download
Download
Download
Download
Download
Download
Download
Download
Download
Download
Download
Download
Download
Download
Download
Download
Download
Download
Download
Download
Download
Download
Download
Download
Download
Download
Download
Download
Download
Download
Download
Download
Download
Download
Download
Download
Download
Download
Download
Download
Download
Download
Download
Download
Download
Download
Download
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:prepareComAndroidSupportAnimatedVectorDrawable2411Library UP-TO-DATE
:app:prepareComAndroidSupportAppcompatV72411Library UP-TO-DATE
:app:prepareComAndroidSupportCardviewV72340Library UP-TO-DATE
:app:prepareComAndroidSupportCustomtabs2340Library UP-TO-DATE
:app:prepareComAndroidSupportSupportV42411Library UP-TO-DATE
:app:prepareComAndroidSupportSupportVectorDrawable2411Library UP-TO-DATE
:app:prepareComFacebookAndroidFacebookAndroidSdk4140Library UP-TO-DATE
:app:prepareComGithubMKergallOsmbonuspackV581Library UP-TO-DATE
:app:prepareComGoogleAndroidGmsPlayServicesAppindexing921Library UP-TO-DATE
:app:prepareComGoogleAndroidGmsPlayServicesBase921Library UP-TO-DATE
:app:prepareComGoogleAndroidGmsPlayServicesBasement921Library UP-TO-DATE
:app:prepareComGoogleAndroidGmsPlayServicesLocation921Library UP-TO-DATE
:app:prepareComGoogleAndroidGmsPlayServicesTasks921Library UP-TO-DATE
:app:prepareComGoogleFirebaseFirebaseAnalytics921Library UP-TO-DATE
:app:prepareComGoogleFirebaseFirebaseAnalyticsImpl921Library UP-TO-DATE
:app:prepareComGoogleFirebaseFirebaseCommon921Library UP-TO-DATE
:app:prepareComGoogleFirebaseFirebaseCore921Library UP-TO-DATE
:app:prepareComGoogleFirebaseFirebaseIid921Library UP-TO-DATE
:app:prepareComGoogleFirebaseFirebaseMessaging921Library UP-TO-DATE
:app:prepareMeDm7BarcodescannerCore184Library UP-TO-DATE
:app:prepareMeDm7BarcodescannerZxing184Library UP-TO-DATE
:app:prepareOrgOsmdroidOsmdroidAndroid52Library 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:processDebugGoogleServices
Parsing json file: C:\Users\me\Documents\GitHub\MyApp\app\google-services.json
:app:generateDebugResources
:app:mergeDebugResources UP-TO-DATE
:app:processDebugManifest UP-TO-DATE
:app:processDebugResources UP-TO-DATE
:app:generateDebugSources UP-TO-DATE
:app:incrementalDebugJavaCompilationSafeguard
:app:compileDebugJavaWithJavac
:app:compileDebugJavaWithJavac - is not incremental (e.g. outputs have changed, no previous execution, etc.).
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: C:\Users\me\Documents\GitHub\MyApp\app\src\main\java\com\my\package\Fragment_downloadMaps.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
:app:compileDebugNdk UP-TO-DATE
:app:compileDebugSources
:app:prePackageMarkerForDebug
:app:transformClassesWithDexForDebug
Result compacted from 8326,4KiB to 6356,0KiB to save 1970,4KiB
Merged dex #1 (15 defs/26,9KiB)
Merged dex #2 (36 defs/34,3KiB)
Merged dex #3 (5 defs/15,3KiB)
Merged dex #4 (355 defs/574,2KiB)
Merged dex #5 (13 defs/22,9KiB)
Merged dex #6 (21 defs/21,2KiB)
Merged dex #7 (819 defs/997,1KiB)
Merged dex #8 (17 defs/48,5KiB)
Merged dex #9 (558 defs/621,0KiB)
Merged dex #10 (80 defs/147,1KiB)
Merged dex #11 (81 defs/68,0KiB)
Merged dex #12 (265 defs/237,9KiB)
Merged dex #13 (530 defs/522,3KiB)
Merged dex #14 (109 defs/90,5KiB)
Merged dex #15 (29 defs/20,5KiB)
Merged dex #16 (3 defs/3,6KiB)
Merged dex #17 (115 defs/202,5KiB)
Merged dex #18 (22 defs/23,4KiB)
Merged dex #19 (15 defs/33,5KiB)
Merged dex #20 (10 defs/22,6KiB)
Merged dex #21 (110 defs/178,4KiB)
Merged dex #22 (217 defs/459,2KiB)
Merged dex #23 (177 defs/288,0KiB)
Merged dex #24 (264 defs/481,2KiB)
Merged dex #25 (289 defs/589,8KiB)
Merged dex #26 (165 defs/171,2KiB)
Merged dex #27 (363 defs/280,8KiB)
Merged dex #28 (12 defs/19,4KiB)
Merged dex #29 (4 defs/7,1KiB)
Merged dex #30 (175 defs/299,9KiB)
Merged dex #31 (34 defs/67,9KiB)
Merged dex #32 (201 defs/282,5KiB)
Merged dex #33 (46 defs/7,4KiB)
Result is 5155 defs/6356,0KiB. Took 0,7s
:app:mergeDebugJniLibFolders UP-TO-DATE
:app:transformNative_libsWithMergeJniLibsForDebug UP-TO-DATE
:app:processDebugJavaRes UP-TO-DATE
:app:transformResourcesWithMergeJavaResForDebug UP-TO-DATE
:app:validateDebugSigning
:app:packageDebug
:app:zipalignDebug
:app:assembleDebug
BUILD SUCCESSFUL
And I installed the resulting package
adb -s xxxxxxx install .\app\build\outputs\apk\app-debug.apk
And the application receives data message in background.
Then I tried the same from Android Studio 2.1.2 terminal:
And I installed the resulting package
adb -s xxxxxxx install .\app\build\outputs\apk\app-debug.apk
And the application receives data message in background.
Then I tried to rebuild/install the app from Android Studio 2.1.2 ide
And the application DOES NOT receive data message in background.
Anyway, what I see from my side is the development environment installed by Android Studio and everything installed to build an application from the source code.
And the tests I made prove that something installed beside sdk, build-tools and Java modify the build.
[Deleted User] <[Deleted User]> #4
Hello,
I've installed AS 2.2 preview 7, I didn't import the settings from AS 2.1
I rebuilt my project and the problem remains:
The application DOES NOT receive data message in background.
Regards,
Al
I've installed AS 2.2 preview 7, I didn't import the settings from AS 2.1
I rebuilt my project and the problem remains:
The application DOES NOT receive data message in background.
Regards,
Al
[Deleted User] <[Deleted User]> #5
I also upgraded GooglePlay and Firebase to 9.4.0; Same problem
fr...@gmail.com <fr...@gmail.com> #6
Facing the exact same issue, I am now trying to build my project from AS 1.5
yo...@gmail.com <yo...@gmail.com> #7
same problem
mi...@gmail.com <mi...@gmail.com> #8
I have same problem. When a phone is connected to Android Studio and I will swipe off the app (kill/put in the background) notifications do not work. When I disconnect the device from Android Studio. Start the app and then swipe off (kill/put in the background) notifications is displayed.
Android Studio: 2.2 Beta
Android Studio: 2.2 Beta
ma...@gmail.com <ma...@gmail.com> #9
Same problem
ra...@gmail.com <ra...@gmail.com> #10
long discuss but no solution... Facing the same problem here... Grrrrr
[Deleted User] <[Deleted User]> #11
For me the problem is solved with Android Studio 2.2.2 145.3360264
FCM (9.6.1) data message is received when the application is in foreground AND when the application is in background.
I also successfully received background reception via onMessageReceive() where I generate a notification.
everything seems to be ok.
FCM (9.6.1) data message is received when the application is in foreground AND when the application is in background.
I also successfully received background reception via onMessageReceive() where I generate a notification.
everything seems to be ok.
[Deleted User] <[Deleted User]> #12
@tourism : I am still facing the problem, Could you please let us know how we can solve it out.
[Deleted User] <[Deleted User]> #13
I found solution:
I just remove notification tag from json sent to firebase server from our local server then I am generating callback in MyFirebaseMessagingService : onMessageReceived() method. n this method I am generating local notification using NotificationCompat.Builder class.
I just remove notification tag from json sent to firebase server from our local server then I am generating callback in MyFirebaseMessagingService : onMessageReceived() method. n this method I am generating local notification using NotificationCompat.Builder class.
pl...@gmail.com <pl...@gmail.com> #14
I have researched more about this. Don't waste your time by trying. It won't work. Google should wake up unless it were a great pain to developers. If you want more details ping me.
p....@neofly.com <p....@neofly.com> #15
If this a big problem in the heart of Android. When a application is stopped (i.e. killed), no intent are sent to the application. In function of device, swipe a application can kill or not the application. A application can be killed automatically after a long time of inactivity or if memory is needed. Data message can't be used reliably, because it will depends of the state of application.
Only solution now is to use message notification or have a service with START_STICKY to be sure you're application is running to handle data message. It's possible it exist a hack to allow to wake up a stopped application but I never found some that worked.
To Android developer : we need a permission to wake up stopped application for specific intent or only for the GCM intent.
Source :
https://stackoverflow.com/questions/37357745/receive-gcm-messages-even-when-app-is-closed-slide-swiped-away
https://github.com/firebase/quickstart-android/issues/41
Only solution now is to use message notification or have a service with START_STICKY to be sure you're application is running to handle data message. It's possible it exist a hack to allow to wake up a stopped application but I never found some that worked.
To Android developer : we need a permission to wake up stopped application for specific intent or only for the GCM intent.
Source :
re...@gmail.com <re...@gmail.com> #16
did anybody find a solution for this isssue
da...@gmail.com <da...@gmail.com> #17
Is this issue still ongoing, because I'm having the same behaviour.
sh...@gmail.com <sh...@gmail.com> #18
those having problem try integrating OneSignal API it works on FCM itself and handles this issue appropriately.
da...@gmail.com <da...@gmail.com> #19
Unable to receive push notifications if application in a stopped state.
de...@gmail.com <de...@gmail.com> #20
issue remains! Still not getting any notification after the app is force closed
sa...@google.com <sa...@google.com> #21
Thank you for your feedback. We assure you that we are doing our best to address the issue reported, however our product team has shifted work priority that doesn't include this issue. For now, we will be closing the issue as won't fix obsolete. If this issue currently still exists, we request that you log a new issue along with latest bug report here https://goo.gl/TbMiIO .
Description
I'm completely in the fog about applications behavior since I updated my development environment.
I recently realized that my applications don't receive GCM/FCM data message anymore when the application is in background.
The last working one, currently published on the store was built with studio 1.5.2, sdk/build Tools 23, java 1.7.
I spent many hours to investigate on the problem since I updated to studio 2.1.2, java 1.8, sdk/build Tools to 24, FCM 9.2.1.
As I didn't find anything I tried with the firebase quickstart-android project in case I modified Something in my app and noticed that I get the same problem.
In fact, when I swipe the application out from the recent apps list, I get the following message, on 2 different devices and android version..
07-23 23:12:29.002 671-31254/? I/ActivityManager: Killing 17453:com.google.firebase.quickstart.fcm/u0a297 (adj 9): remove task
07-23 23:12:29.016 14316-14524/? D/GCM: Removing messenger 0:com.google.firebase.quickstart.fcm
07-23 23:12:29.017 671-2998/? I/WindowState: WIN DEATH: Window{2a27cf7 u0 com.google.firebase.quickstart.fcm/com.google.firebase.quickstart.fcm.MainActivity}
07-23 23:12:30.148 671-4851/? I/ActivityManager: Force stopping com.google.firebase.quickstart.fcm appid=10297 user=0: from pid 18289
As I wasn't able to find what's wrong, I made a test with a working project of mine, based on GCM 8.4.0.
I tried to build it with studio 2.1.2, sdk 24, java 1.8 and I got the same problem.
So I tried to rebuild it with sdk 23, java 1.7 so the same environment I use to build it in the past, which gave me a working application.
But it doesn't receive data message in background and in fact, I notice that the application is also force killed when I swipe it out from the recent apps list !?!
The only difference I see now between the time I generated working project and now, is the version of Android Studio.
To add a precision, I get the same problem on 2 different computers and on one of them, I uninstalled/reinstalled everything.
So, I've reinstalled Studio 1.5 bundle 141.2422023 and application is no more Force stopped by the system and is now able to receive data-message correctly when it's in background!
Below are the detailed tests I made on both Studio 2.1.2 and Studio 1.5:
project Firebase quickstart-android built on Studio 1.5:
classpath 'com.google.gms:google-services:3.0.0'
compileSdkVersion 24
buildToolsVersion "24.0.0"
defaultConfig {
applicationId "com.google.firebase.quickstart.fcm"
minSdkVersion 9
targetSdkVersion 24
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
compile 'com.google.firebase:firebase-messaging:9.2.1'
jdk1.8.0_92
Works on Nexus 7 2013 6.0.1, GT-9295 5.0.1
----------------------------------------------
classpath 'com.google.gms:google-services:3.0.0'
compileSdkVersion 24
buildToolsVersion "24.0.0"
defaultConfig {
applicationId "com.google.firebase.quickstart.fcm"
minSdkVersion 9
targetSdkVersion 24
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
compile 'com.google.firebase:firebase-messaging:9.2.1'
jdk1.7.0_79
Works on Nexus 7 2013 6.0.1, GT-9295 5.0.1
----------------------------------------------
My project based on GCM built on Studio 1.5:
classpath 'com.google.gms:google-services:2.0.0-alpha6'
compileSdkVersion 23
buildToolsVersion '23.0.2'
defaultConfig {
applicationId "com.ndguide.ndguide"
minSdkVersion 18
targetSdkVersion 22
multiDexEnabled true
}
compile 'com.google.android.gms:play-services-gcm:8.4.0'
jdk1.8.0_92
Works on Nexus 7 2013 6.0.1, GT-9295 5.0.1
----------------------------------------------
My project based on GCM built on Studio 1.5:
classpath 'com.google.gms:google-services:2.0.0-alpha6'
compileSdkVersion 23
buildToolsVersion '23.0.2'
defaultConfig {
applicationId "com.ndguide.ndguide"
minSdkVersion 18
targetSdkVersion 23
multiDexEnabled true
}
compile 'com.google.android.gms:play-services-gcm:8.4.0'
jdk1.7.0_79
Works on Nexus 7 2013 6.0.1, GT-9295 5.0.1
----------------------------------------------
My project based on FCM built on Studio 1.5:
classpath 'com.google.gms:google-services:3.0.0'
compileSdkVersion 24
buildToolsVersion '24.0.0'
defaultConfig {
applicationId "com.ndguide.ndguide"
minSdkVersion 19
targetSdkVersion 24
}
compile 'com.google.firebase:firebase-messaging:9.2.1'
jdk1.8.0_92
Works on Nexus 7 2013 6.0.1, GT-9295 5.0.1
----------------------------------------------
**********************************************************
project Firebase quickstart-android built on Studio 2.1.2:
classpath 'com.google.gms:google-services:3.0.0'
compileSdkVersion 24
buildToolsVersion "24.0.0"
defaultConfig {
applicationId "com.google.firebase.quickstart.fcm"
minSdkVersion 9
targetSdkVersion 24
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
compile 'com.google.firebase:firebase-messaging:9.2.1'
jdk1.8.0_92
Message received in foreground and not in background Nexus 7 2013 6.0.1, GT-9295 5.0.1
Saw the following message in logcat when swiping app out from recent apps list
07-26 10:03:13.128 608-1683/? I/ActivityManager: Force stopping com.google.firebase.quickstart.fcm appid=10083 user=0: from pid 19343
----------------------------------------------
project Firebase quickstart-android built on Studio 2.1.2:
classpath 'com.google.gms:google-services:3.0.0'
compileSdkVersion 24
buildToolsVersion "24.0.0"
defaultConfig {
applicationId "com.google.firebase.quickstart.fcm"
minSdkVersion 9
targetSdkVersion 24
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
compile 'com.google.firebase:firebase-messaging:9.2.1'
jdk1.7.0_79
Message received in foreground and not in background on Nexus 7 2013 6.0.1, GT-9295 5.0.1
Saw the following message in logcat when swiping app out from recent apps list
07-26 10:05:24.557 608-3115/? I/ActivityManager: Force stopping com.google.firebase.quickstart.fcm appid=10083 user=0: from pid 20332
07-26 10:05:24.564 20332-20332/? D/AndroidRuntime: Shutting down VM
07-26 10:05:24.566 194-1173/? D/NuPlayerDriver: stop(0xb6058220)
07-26 10:05:24.566 194-1173/? D/NuPlayerDriver: notifyListener_l(0xb6058220), (8, 0, 0)
07-26 10:05:24.567 1239-1253/? W/MessageQueue: Handler (android.media.MediaPlayer$EventHandler) {e6095ef} sending message to a Handler on a dead thread
java.lang.IllegalStateException: Handler (android.media.MediaPlayer$EventHandler) {e6095ef} sending message to a Handler on a dead thread
at android.os.MessageQueue.enqueueMessage(MessageQueue.java:543)
at android.os.Handler.enqueueMessage(Handler.java:631)
at android.os.Handler.sendMessageAtTime(Handler.java:600)
at android.os.Handler.sendMessageDelayed(Handler.java:570)
at android.os.Handler.sendMessage(Handler.java:507)
at android.media.MediaPlayer.postEventFromNative(MediaPlayer.java:2988)
----------------------------------------------
My project based on GCM built on Studio 2.1.2 so gradle updated to 2.1.2 compared to original project, instant run deactivated:
classpath 'com.google.gms:google-services:2.0.0-alpha6'
compileSdkVersion 23
buildToolsVersion '23.0.2'
defaultConfig {
applicationId "com.ndguide.ndguide"
minSdkVersion 18
targetSdkVersion 23
multiDexEnabled true
}
compile 'com.google.android.gms:play-services-gcm:8.4.0'
jdk1.7.0_79
Message received in foreground and not in background on Nexus 7 2013 6.0.1
Saw the following message in logcat when swiping app out from recent apps list
07-26 10:23:53.167 608-1261/? I/ActivityManager: Force stopping com.ndguide.ndguide appid=10176 user=0: from pid 22958
And when I send the message
07-26 10:24:39.663 1461-1461/? W/GCM-DMM: broadcast intent callback: result=CANCELLED forIntent { act=com.google.android.c2dm.intent.RECEIVE flg=0x10000000 pkg=com.ndguide.ndguide (has extras) }
----------------------------------------------
My project based on FCM built on Studio 2.1.2 instant run deactivated:
classpath 'com.google.gms:google-services:3.0.0'
compileSdkVersion 24
buildToolsVersion '24.0.0'
defaultConfig {
applicationId "com.ndguide.ndguide"
minSdkVersion 19
targetSdkVersion 24
}
compile 'com.google.firebase:firebase-messaging:9.2.1'
jdk1.8.0_92
Message received in foreground and not in background on Nexus 7 2013 6.0.1
Saw the following message in logcat when swiping app out from recent apps list
07-26 10:32:29.131 608-1664/? I/ActivityManager: Force stopping com.ndguide.ndguide appid=10176 user=0: from pid 24892
And when I send the message
07-26 10:33:16.234 1461-1461/? W/GCM-DMM: broadcast intent callback: result=CANCELLED forIntent { act=com.google.android.c2dm.intent.RECEIVE flg=0x10000000 pkg=com.ndguide.ndguide (has extras) }
-----------------------------------------------------------
In all cases, the sent message with Google Advanced REST Client is the following one. I only changed the Authorization and token accordingly
{
"to" : "egu9jGiMcew:APA91bFv2Rewdz.....KZZmEURvbq-aA2",
"data": {
"id": 19,
"title": "Title test",
"msg": "Text of the test",
"code": 2,
"infosUrl": "ttp://www.secondguide.tours",
"longitude": 5.5,
"latitude": 44.5,
"eventLocation": "nowhere",
"startDate": "24/07/2016",
"endDate": "25/07/2016",
},
"delay_while_idle" : false,
"priority" : "high",
"content_available" : true
}
So I'm really sorry but I spent lot of time these last 2 weeks on this problem, again all this weekend and as I said again more than 3 hours this morning.
I read many post notably on Stackoverflow where we can just conclude that GCM/FCM work for some people and not for some others.
I'm now convinced at 1.000 % that despite you can have a doubt, the problem is not between the chair and the desktop but in Android Studio 2.1.2 !!!!
I cannot believe that the problem is related latitude, longitude or the temperature or I don't know what else.
So if you test the firebase project (
Kind regards,
Al