That Error Msg.
Executing tasks: [clean, :app:assembleDebug] in project /Volumes/Macintosh Database/iFolder Save/Application/Android/Developer/
Task :clean UP-TO-DATE
Task :app:clean
Task :app:preBuild UP-TO-DATE
Task :app:preDebugBuild UP-TO-DATE
Task :app:generateDebugBuildConfig
Task :app:javaPreCompileDebug
Task :app:mainApkListPersistenceDebug
Task :app:compileDebugAidl NO-SOURCE
Task :app:compileDebugRenderscript NO-SOURCE
Task :app:generateDebugResValues
Task :app:generateDebugResources
Task :app:createDebugCompatibleScreenManifests
Task :app:extractDeepLinksDebug
Task :app:processDebugManifest
Task :app:mergeDebugShaders
Task :app:compileDebugShaders
Task :app:generateDebugAssets
Task :app:mergeDebugAssets
Task :app:processDebugJavaRes NO-SOURCE
Task :app:checkDebugDuplicateClasses
Task :app:mergeDebugResources
Task :app:processDebugResources
Task :app:compileDebugJavaWithJavac
Task :app:compileDebugSources
Task :app:dexBuilderDebug
Task :app:mergeDebugJavaResource FAILED
Task :app:mergeLibDexDebug
Task :app:mergeExtDexDebug
Task :app:mergeProjectDexDebug
FAILURE: Build failed with an exception.
What went wrong:
Execution failed for task ':app:mergeDebugJavaResource'.
A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
com.google.common.base.VerifyException (no error message)
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 2s
21 actionable tasks: 20 executed, 1 up-to-date
//--- I tried all of the suggestions in this text and didn't go away. Try creating a new project and compiling the same message as well. ---//
Related
Executing tasks: [clean, :app:assembleDebug] in project D:\Profile\AGAINAGAIN
Task :clean UP-TO-DATE
Task :app:clean
Task :app:preBuild UP-TO-DATE
Task :app:preDebugBuild UP-TO-DATE
Task :app:generateDebugBuildConfig
Task :app:compileDebugAidl NO-SOURCE
Task :app:compileDebugRenderscript NO-SOURCE
Task :app:javaPreCompileDebug
Task :app:mainApkListPersistenceDebug
Task :app:generateDebugResValues
Task :app:generateDebugResources
Task :app:processDebugGoogleServices FAILED
Parsing json file: D:\Profile\AGAINAGAIN\app\google-services.json
FAILURE: Build failed with an exception.
What went wrong:
Execution failed for task ':app:processDebugGoogleServices'.
No matching client found for package name 'com.Dinke.againagain'
Any solution provided ?Please tell me if you know any of the files .
Since I think every cases are unique, I think it is better to provide as much info as I can ?
In the google-services.json change the package name to your package name;
"client": [
{
"client_info": {
"mobilesdk_app_id": "",
"android_client_info": {
"package_name": "com.Dinke.againagain" //here
}
},
You can read more about this here: https://developers.google.com/android/guides/google-services-plugin#processing_the_json_file
Executing tasks: [:app:assembleDebug] in project C:\Users\Zebranic\AndroidStudioProjects\Atoz
Configure project :app
registerResGeneratingTask is deprecated, use registerGeneratedResFolders(FileCollection)
registerResGeneratingTask is deprecated, use registerGeneratedResFolders(FileCollection)
Task :app:preBuild UP-TO-DATE
Task :app:preDebugBuild UP-TO-DATE
Task :app:checkDebugManifest
Task :app:compileDebugAidl NO-SOURCE
Task :app:compileDebugRenderscript NO-SOURCE
Task :app:generateDebugBuildConfig
Task :app:mainApkListPersistenceDebug
Task :app:generateDebugResValues
Task :app:generateDebugResources
Task :app:writeDebugApplicationId
Task :app:processDebugGoogleServices
Parsing json file: C:\Users\Zebranic\AndroidStudioProjects\Atoz\app\google-services.json
Task :app:javaPreCompileDebug
Task :app:createDebugCompatibleScreenManifests
Task :app:processDebugManifest
C:\Users\Zebranic\AndroidStudioProjects\Atoz\app\src\main\AndroidManifest.xml:24:9-31:50 Warning:
activity#com.google.firebase.auth.internal.FederatedSignInActivity#android:launchMode was tagged at AndroidManifest.xml:24 to replace other declarations but no other declaration present
Task :app:mergeDebugShaders
Task :app:compileDebugShaders
Task :app:generateDebugAssets
Task :app:mergeDebugAssets
Task :app:mergeDebugResources
Task :app:processDebugResources FAILED
AGPBI: {"kind":"error","text":"Android resource linking failed","sources":[{"file":"C:\Users\Zebranic\AndroidStudioProjects\Atoz\app\src\main\res\drawable\btntrail.xml"}],"original":"C:\Users\Zebranic\AndroidStudioProjects\Atoz\app\src\main\res\drawable\btntrail.xml: AAPT: error: elements require a sdk version of at least 26.\n ","tool":"AAPT"}
FAILURE: Build failed with an exception.
What went wrong:
Execution failed for task ':app:processDebugResources'.
A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
Android resource linking failed
C:\Users\Zebranic\AndroidStudioProjects\Atoz\app\src\main\res\drawable\btntrail.xml: AAPT: error: elements require a sdk version of at least 26.
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 12s
14 actionable tasks: 14 executed
AAPT: error: elements require a sdk version of at least 26.\n ","tool":"AAPT"
Try Updating SDK version.
Settings->System Settings->Android SDK->SDK Tools
Check Android SDK Tools 26.1.1
At least v26 is to be installed or higher.
Here is what I got from the error message:
Information:Gradle tasks [clean, :app:generateDebugSources, :app:generateDebugAndroidTestSources, :app:mockableAndroidJar, :app:prepareDebugUnitTestDependencies, :library:generateDebugSources, :library:generateDebugAndroidTestSources, :library:mockableAndroidJar, :library:prepareDebugUnitTestDependencies]
Error:Some file crunching failed, see logs for details
Error:Execution failed for task ':app:mergeDebugResources'.> Error: Some file crunching failed, see logs for details
Information:BUILD FAILED
Information:Total time: 3.008 secs
Information:2 errors
Information:0 warnings
Information:See complete output in console
message :
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:mergeDebugResources'.>
Error: Some file crunching failed, see logs for details
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
Total time: 3.212 secs
Executing tasks: [clean, :app:generateDebugSources, :app:generateDebugAndroidTestSources, :app:mockableAndroidJar, :app:prepareDebugUnitTestDependencies, :library:generateDebugSources, :library:generateDebugAndroidTestSources, :library:mockableAndroidJar, :library:prepareDebugUnitTestDependencies]
Parallel execution with configuration on demand is an incubating feature.
Using the 'clean' task in combination with parallel execution may lead to unexpected runtime behavior.
Incremental java compilation is an incubating feature.
:clean
:app:clean
:library:clean
:library:preBuild UP-TO-DATE
:library:preReleaseBuild UP-TO-DATE
:library:checkReleaseManifest
:library:preDebugAndroidTestBuild UP-TO-DATE
:library:preDebugBuild UP-TO-DATE
:library:preDebugUnitTestBuild UP-TO-DATE
:library:preReleaseUnitTestBuild UP-TO-DATE
:library:prepareComAndroidSupportAnimatedVectorDrawable2531Library
:library:prepareComAndroidSupportAppcompatV72531Library
:library:prepareComAndroidSupportSupportCompat2531Library
:library:prepareComAndroidSupportSupportCoreUi2531Library
:library:prepareComAndroidSupportSupportCoreUtils2531Library
:library:prepareComAndroidSupportSupportFragment2531Library
:library:prepareComAndroidSupportSupportMediaCompat2531Library
:library:prepareComAndroidSupportSupportV42531Library
:library:prepareComAndroidSupportSupportVectorDrawable2531Library
:library:prepareReleaseDependencies
:library:compileReleaseAidl
:library:compileLint
:library:copyReleaseLint UP-TO-DATE
:library:mergeReleaseShaders
:library:compileReleaseShaders
:library:generateReleaseAssets
:library:mergeReleaseAssets
:library:mergeReleaseProguardFiles UP-TO-DATE
:library:packageReleaseRenderscript UP-TO-DATE
:library:compileReleaseRenderscript
:library:generateReleaseResValues
:library:generateReleaseResources
:library:packageReleaseResources
:library:processReleaseManifest
:library:bundleRelease
:app:preBuild UP-TO-DATE
:app:preDebugBuild UP-TO-DATE
:app:checkDebugManifest
:app:preReleaseBuild UP-TO-DATE
:app:prepareComAndroidSupportAnimatedVectorDrawable2531Library
:app:prepareComAndroidSupportAppcompatV72531Library
:library:checkDebugManifest
:app:prepareComAndroidSupportConstraintConstraintLayout101Library
:library:prepareDebugDependencies
:library:compileDebugAidl
:app:prepareComAndroidSupportDesign2531Library
:app:prepareComAndroidSupportRecyclerviewV72531Library
:app:prepareComAndroidSupportSupportCompat2531Library
:library:compileDebugRenderscript
:app:prepareComAndroidSupportSupportCoreUi2531Library
:app:prepareComAndroidSupportSupportCoreUtils2531Library
:app:prepareComAndroidSupportSupportFragment2531Library
:app:prepareComAndroidSupportSupportMediaCompat2531Library
:library:generateDebugBuildConfig
:app:prepareComAndroidSupportSupportV42531Library
:app:prepareComAndroidSupportSupportVectorDrawable2531Library
:library:generateDebugResValues
:app:prepareComAndroidSupportTransition2531Library
:library:generateDebugResources
:library:mergeDebugResources
:app:prepareComJakewhartonButterknife881Library
:app:prepareDebugDependencies
:app:compileDebugAidl
:app:compileDebugRenderscript
:app:generateDebugBuildConfig
:app:generateDebugResValues
:app:generateDebugResources
:app:mergeDebugResources
AAPT: libpng error: Not a PNG file
:library:processDebugManifest
:library:processDebugResources
Error: Some file crunching failed, see logs for details
:app:mergeDebugResources FAILED
How to solve it?
Check your drawable resource/images bundled. One of them or few of them might not be the proper .png files
AAPT: libpng error: Not a PNG file
Solution open the file which is not correct in an editor and save it with same name and correct .png extension.
You should comment org.gradle.parallel = true in gradle.properties.
Im running form the CLI
$ tns debug android --geny "Custom Phone - 5.0.0 - API21 - 768x1280" --debug-brk
Multiple devices found! Starting debugger on emulator. If you want to
debug on specific device please select device with --device option.
Executing before-prepare hook from
/Users/mohit/work/Mobile/native/Groceries/hooks/before-prepare/nativescript-dev-typescript.js
Found peer TypeScript 1.8.10 Project successfully prepared (android)
:config phase: createDefaultIncludeFiles +found plugins:
tns-core-modules-widgets
:config phase: createPluginsConfigFile Creating product flavors
include.gradle file in
/Users/mohit/work/Mobile/native/Groceries/platforms/android/configurations
folder...
:config phase: pluginExtend +applying configuration from:
/Users/mohit/work/Mobile/native/Groceries/platforms/android/configurations/include.gradle
+applying configuration from:
/Users/mohit/work/Mobile/native/Groceries/platforms/android/configurations/tns-core-modules-widgets/include.gradle
:config phase: copyAarDependencies
:config phase: addAarDependencies +adding dependency:
/Users/mohit/work/Mobile/native/Groceries/platforms/android/libs/aar/widgets-release.aar
Incremental java compilation is an incubating feature. :preBuild
UP-TO-DATE :preF0DebugBuild UP-TO-DATE :checkF0DebugManifest
:preF0ReleaseBuild UP-TO-DATE
:prepareComAndroidSupportAnimatedVectorDrawable2421Library UP-TO-DATE
:prepareComAndroidSupportAppcompatV72421Library UP-TO-DATE
:prepareComAndroidSupportSupportCompat2421Library UP-TO-DATE
:prepareComAndroidSupportSupportCoreUi2421Library UP-TO-DATE
:prepareComAndroidSupportSupportCoreUtils2421Library UP-TO-DATE
:prepareComAndroidSupportSupportFragment2421Library UP-TO-DATE
:prepareComAndroidSupportSupportMediaCompat2421Library UP-TO-DATE
:prepareComAndroidSupportSupportV42421Library UP-TO-DATE
:prepareComAndroidSupportSupportVectorDrawable2421Library UP-TO-DATE
:prepareGroceriesRuntimeUnspecifiedLibrary UP-TO-DATE
:prepareWidgetsReleaseLibrary UP-TO-DATE :prepareF0DebugDependencies
:compileF0DebugAidl UP-TO-DATE :compileF0DebugRenderscript UP-TO-DATE
:generateF0DebugBuildConfig UP-TO-DATE :cleanLocalAarFiles
:ensureMetadataOutDir :collectAllJars :setProperties
:asbg:generateInterfaceNamesList :asbg:runAstParser UP-TO-DATE
:asbg:generateBindings UP-TO-DATE :mergeF0DebugShaders UP-TO-DATE
:compileF0DebugShaders UP-TO-DATE :generateF0DebugAssets UP-TO-DATE
:mergeF0DebugAssets UP-TO-DATE :generateF0DebugResValues UP-TO-DATE
:generateF0DebugResources UP-TO-DATE :mergeF0DebugResources UP-TO-DATE
:processF0DebugManifest UP-TO-DATE :processF0DebugResources UP-TO-DATE
:generateF0DebugSources UP-TO-DATE
:incrementalF0DebugJavaCompilationSafeguard UP-TO-DATE
:compileF0DebugJavaWithJavac UP-TO-DATE :compileF0DebugNdk UP-TO-DATE
:compileF0DebugSources UP-TO-DATE :buildMetadata Exception in thread
"main" java.lang.IllegalArgumentException: Class
android.support.graphics.drawable.animated.BuildConfig conflict:
/Users/mohit/work/Mobile/native/Groceries/platforms/android/build/intermediates/exploded-aar/com.android.support/animated-vector-drawable/24.2.1/jars/classes.jar
and
/Users/mohit/work/Mobile/native/Groceries/platforms/android/build/intermediates/exploded-aar/com.android.support/animated-vector-drawable/23.4.0/jars/classes.jar
at com.telerik.metadata.ClassRepo.cacheJarFile(ClassRepo.java:21) at
com.telerik.metadata.Builder.build(Builder.java:39) at
com.telerik.metadata.Generator.main(Generator.java:44) :buildMetadata
FAILED
FAILURE: Build failed with an exception.
What went wrong: Execution failed for task ':buildMetadata'.
Process 'command '/Library/Java/JavaVirtualMachines/jdk1.8.0_102.jdk/Contents/Home/bin/java''
finished with non-zero exit value 1
Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
Total time: 11.293 secs Command
/Users/mohit/work/Mobile/native/Groceries/platforms/android/gradlew
failed with exit code 1
How do I fix this ?
Thanks :)
tns platform remove android
tns platform add android
https://github.com/NativeScript/android-runtime/issues/339
Here is my problem
Can anyone help?
Ive tried changing the build version on gradle but it still doesnt run
[1] http://imgur.com/U5CP8rO
BUILD FAILED
Total time: 11.872 secs
Executing tasks: [:app:compileDebugSources, :app:compileDebugAndroidTestSources]
Configuration on demand is an incubating feature.
:app:preBuild UP-TO-DATE
:app:preDebugBuild UP-TO-DATE
:app:checkDebugManifest
:app:preReleaseBuild UP-TO-DATE
:app:prepareComAndroidSupportAppcompatV72300Library UP-TO-DATE
:app:prepareComAndroidSupportDesign2300Library UP-TO-DATE
:app:prepareComAndroidSupportSupportV42300Library 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
AAPT err(Facade for 1220063698): libpng error: Not a PNG file
FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:mergeDebugResources'.
> Some file crunching failed, see logs for details
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
Total time: 11.771 secs
WHEN I TRY TO CLEAN BUILD:
Executing tasks: [clean, :app:generateDebugSources, :app:generateDebugAndroidTestSources]
Configuration on demand is an incubating feature.
:clean
:app:clean
:app:preBuild UP-TO-DATE
:app:preDebugBuild UP-TO-DATE
:app:checkDebugManifest
:app:preReleaseBuild UP-TO-DATE
:app:prepareComAndroidSupportAppcompatV72300Library FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:prepareComAndroidSupportAppcompatV72300Library'.
> Failed to create parent directory 'P:\BudgetWiseApp\app\build' when creating directory 'P:\BudgetWiseApp\app\build\intermediates\exploded-aar\com.android.support\appcompat-v7\23.0.0'
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
Total time: 13.896 secs
Your log shows this:
AAPT err(Facade for 1220063698): libpng error: Not a PNG file
This means that somewhere you have an image resource that is not a PNG.
The log usually shows which file is causing the problem, but you might need to run with the --stacktrace option (e.g. gradlew assembleDebug --stacktrace).
If that still doesn't show the file name, you will need to look through your drawable folders for images that aren't PNGs.
Build -> Clean Project
Build -> Rebuild Project
make sure the images in your drawable is in png format.
you can convert any image in png format just by opening with a image editor and save as png.