NathanWalker / ShoutOutPlay

The mobile app that allows you to create and record personal dedications using your favorite music playlists for corporate events, parties, weddings and get togethers.
https://shoutoutplay.com
30 stars 7 forks source link

Android debug build #41

Closed NathanWalker closed 7 years ago

NathanWalker commented 8 years ago

Even without the spotify plugin android compatible, I wanted to see if Android would build and at least launch the app, but I see this when doing tns run android and/or tns debug android with GenyMotion open to a Virtual Google Nexus 5 - 5.1.0:

:cleanLocalAarFiles
:ensureMetadataOutDir
:collectAllJars
:setProperties
:asbg:generateInterfaceNamesList
:asbg:runAstParser UP-TO-DATE
:asbg:generateBindings UP-TO-DATE
:generateF0F1F2F3F4F5DebugAssets UP-TO-DATE
:mergeF0F1F2F3F4F5DebugAssets
:generateF0F1F2F3F4F5DebugResValues UP-TO-DATE
:generateF0F1F2F3F4F5DebugResources
:mergeF0F1F2F3F4F5DebugResources
:processF0F1F2F3F4F5DebugManifest
:processF0F1F2F3F4F5DebugResources FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':processF0F1F2F3F4F5DebugResources'.
> com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command '/usr/local/Cellar/android-sdk/24.4.1_1/build-tools/23.0.2/aapt'' finished with non-zero exit value 1

I'm not sure if anyone else has seen that when running Android with their projects or may know how I could either get more of a stacktrace or whats going on.

bradmartin commented 8 years ago

Best bet, cleanse the soul. Think it's tns run chicken soup for soul. I've seen it. I think the platform clean does the trick, I always forgot what exactly fixes it cause I do several things at once so I just get past the error

On Tue, Aug 2, 2016, 11:31 PM Nathan Walker notifications@github.com wrote:

Even without the spotify plugin android compatible, I wanted to see if Android would build and at least launch the app, but I see this when doing tns run android and/or tns debug android with GenyMotion open to a Virtual Google Nexus 5 - 5.1.0:

:cleanLocalAarFiles :ensureMetadataOutDir :collectAllJars :setProperties :asbg:generateInterfaceNamesList :asbg:runAstParser UP-TO-DATE :asbg:generateBindings UP-TO-DATE :generateF0F1F2F3F4F5DebugAssets UP-TO-DATE :mergeF0F1F2F3F4F5DebugAssets :generateF0F1F2F3F4F5DebugResValues UP-TO-DATE :generateF0F1F2F3F4F5DebugResources :mergeF0F1F2F3F4F5DebugResources :processF0F1F2F3F4F5DebugManifest :processF0F1F2F3F4F5DebugResources FAILED

FAILURE: Build failed with an exception.

  • What went wrong: Execution failed for task ':processF0F1F2F3F4F5DebugResources'.

    com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command '/usr/local/Cellar/android-sdk/24.4.1_1/build-tools/23.0.2/aapt'' finished with non-zero exit value 1

I'm not sure if anyone else has seen that when running Android with their projects or may know how I could either get more of a stacktrace or whats going on.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/NathanWalker/ShoutOutPlay/issues/41, or mute the thread https://github.com/notifications/unsubscribe-auth/AFulhMFpWZHem-syHgEk3UHdgUItu4xEks5qcBmrgaJpZM4JbStW .

NathanWalker commented 8 years ago

Thanks @bradmartin I'll try that 👍

NathanaelA commented 8 years ago

Ok, here is the fixes you need to do to get this building on Android:

  1. After installing everything, you need to manually edit the node_modules/nativescript-plugin-firebase/platforms/android/include.build and update all version numbers to 9.4.0 from 9.2.0
  2. Run "Android" and make sure that you have:
  3. v32 of Google Play Serversion
  4. v32 of Google Repository
  5. v35 of Android Support Repository
  6. v23.2.1 of Android Support Library
  7. Update the /platforms/android/build.gradle around line 28 where it says:
    dependencies {
        classpath "com.android.tools.build:gradle:1.5.0"
    }

Add classpath 'com.google.gms:google-services:3.0.0' You need to verify this exists; NS when generating/cleaning the platform will replace this with a stock version that won't have that... So the copy in the repo will be overwritten when you do several things in the platforms folder...