Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build fails on Android #118

Closed
surdu opened this issue Jan 11, 2018 · 8 comments
Closed

Build fails on Android #118

surdu opened this issue Jan 11, 2018 · 8 comments
Assignees
Milestone

Comments

@surdu
Copy link

surdu commented Jan 11, 2018

Steps to reproduce:

  1. tns create TestApp (make sure you have the latest nativescript)
  2. add the fabric.json file
  3. Add the API-Key to the AndroidManifest.xml
  4. tns run android

Expected:
The build should work

Actual:
When trying to build the Android app, the build fails with the following error:

* What went wrong:
A problem occurred evaluating project ':fabric'.
> Failed to apply plugin [id 'io.fabric']
   > Crashlytics was applied to a project without an Android plugin. Please make sure the 
     Crashlytics plugin is applied after the appropriate Android plugin for your project.

The full output can be found here.

Versions:

$ tns info
All NativeScript components versions information
┌──────────────────┬─────────────────┬────────────────┬─────────────┐
│ Component        │ Current version │ Latest version │ Information │
│ nativescript     │ 3.4.1           │ 3.4.1          │ Up to date  │
│ tns-core-modules │ 3.4.0           │ 3.4.0          │ Up to date  │
│ tns-android      │ 3.4.1           │ 3.4.1          │ Up to date  │
│ tns-ios          │ 3.4.1           │ 3.4.1          │ Up to date  │
└──────────────────┴─────────────────┴────────────────┴─────────────┘

$ node --version
v7.7.2

$ npm --version
4.6.1

Java version: 8 build 131

@hypery2k
Copy link
Owner

which version of the plugin you're using?

I already tried to solve these issues, but didn't find a right, see here

Don't have any further idea what's wrong and also not that much time for more investigation

@surdu
Copy link
Author

surdu commented Jan 11, 2018

I'm using the @next version

@surdu
Copy link
Author

surdu commented Jan 11, 2018

@hypery2k Looking at the issue you mentioned, looks like those are runtime issues, whereas this one is a build issue.

@hypery2k
Copy link
Owner

you're right, but to be honest, I tried to fix the runtime issue and now creating this one you wanted.
As for now I'm giving up. I've got no idea what's this gradle foo all about...

Please don't use the @nextversion it's only a dev preview

@surdu
Copy link
Author

surdu commented Jan 11, 2018

Using nativescript-fabric@1.0.6 and I have the same issue 😞

@hypery2k
Copy link
Owner

as already mentioned I don't exactly know why it's not working anymore.

@surdu
Copy link
Author

surdu commented Jan 11, 2018

I managed to make the build work by manually patching the platforms/android/app/build.gradle with the contents of platforms/android/build-tools/fabric-devtools/build.gradle as described here.

But now I have a runtime error ... 😞 :

Process com.my.app (pid 4339) has died: vis  +99TOP

I'm not familiar with gradle, but this hints me that maybe some gradle execution order was changed in the new NS ... ?

But even if this is fixed, then it's the runtime error ...

hypery2k added a commit that referenced this issue Jan 15, 2018
@hypery2k hypery2k added this to the 2.0 milestone Jan 15, 2018
@hypery2k
Copy link
Owner

duplicate of #114

Repository owner locked and limited conversation to collaborators Jan 15, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants