Khang-NT / Android-Media-Converter

Android open source media converter build on top of FFmpeg
GNU General Public License v3.0
213 stars 60 forks source link

Build without Fabric #92

Closed abitrolly closed 6 years ago

abitrolly commented 6 years ago

Is it possible to build project "offline" without accessing Fabric API?

➜  Android-Media-Converter git:(master) ANDROID_HOME=~/Android/Sdk ./gradlew build
Starting a Gradle Daemon (subsequent builds will be faster)

> Task :app:fabricGenerateResourcesArm7Release FAILED
ERROR - Crashlytics Developer Tools error.
java.lang.IllegalArgumentException: Crashlytics found an invalid API key: null. 
Check the Crashlytics plugin to make sure that the application has been added successfully! 
Contact support@fabric.io for assistance.
        at com.crashlytics.tools.android.DeveloperTools.processApiKey(DeveloperTools.java:375)
        at com.crashlytics.tools.android.DeveloperTools.processProperties(DeveloperTools.java:517)
        at com.crashlytics.tools.android.DeveloperTools.processArgsInternal(DeveloperTools.java:348)
...
        at org.gradle.internal.concurrent.ThreadFactoryImpl$ManagedThreadRunnable.run(ThreadFactoryImpl.java:55)
        at java.lang.Thread.run(Thread.java:748)

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:fabricGenerateResourcesArm7Release'.
> Crashlytics Developer Tools error.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 17s
138 actionable tasks: 1 executed, 137 up-to-date
Khang-NT commented 6 years ago

Yes, you can use this option for release build: https://github.com/Khang-NT/Android-Media-Converter/blob/master/app/build.gradle#L54

abitrolly commented 6 years ago

Thanks. Managed to build it with

 ANDROID_HOME=~/Android/Sdk ./gradlew assembleDebug

Will try to install later with

ANDROID_HOME=~/Android/Sdk ./gradlew installArmDebug

https://developer.android.com/studio/build/building-cmdline