I just installed android studio. after I run the application on android studio, an error appears.
Execution failed for task ':app:checkDebugAarMetadata'.
.> Multiple task action failures occurred:
.> A failure occurred while executing com.android.build.gradle.internal.tasks.CheckAarMetadataWorkAction
.> The minCompileSdk (31) specified in a
dependency's AAR metadata (META-INF/com/android/build/gradle/aar-metadata.properties)
is greater than this module's compileSdkVersion (android-30).
Dependency: androidx.core:core-ktx:1.7.0.
AAR metadata file: C:\Users\ASUS.gradle\caches\transforms-3\6860334808920ca12b2cd0121824eebd\transformed\jetified-core-ktx-1.7.0\META-INF\com\android\build\gradle\aar-metadata.properties.
.> A failure occurred while executing com.android.build.gradle.internal.tasks.CheckAarMetadataWorkAction
.> The minCompileSdk (31) specified in a
dependency's AAR metadata (META-INF/com/android/build/gradle/aar-metadata.properties)
is greater than this module's compileSdkVersion (android-30).
Dependency: androidx.appcompat:appcompat:1.4.1.
AAR metadata file: C:\Users\ASUS.gradle\caches\transforms-3\235f02541b7028202c8adb4d579147bb\transformed\appcompat-1.4.1\META-INF\com\android\build\gradle\aar-metadata.properties.
.> A failure occurred while executing com.android.build.gradle.internal.tasks.CheckAarMetadataWorkAction
.> The minCompileSdk (31) specified in a
dependency's AAR metadata (META-INF/com/android/build/gradle/aar-metadata.properties)
is greater than this module's compileSdkVersion (android-30).
Dependency: androidx.appcompat:appcompat-resources:1.4.1.
AAR metadata file: C:\Users\ASUS.gradle\caches\transforms-3\fd628b3502225c9494311d76a802f459\transformed\jetified-appcompat-resources-1.4.1\META-INF\com\android\build\gradle\aar-metadata.properties.
.> A failure occurred while executing com.android.build.gradle.internal.tasks.CheckAarMetadataWorkAction
.> The minCompileSdk (31) specified in a
dependency's AAR metadata (META-INF/com/android/build/gradle/aar-metadata.properties)
is greater than this module's compileSdkVersion (android-30).
Dependency: androidx.emoji2:emoji2-views-helper:1.0.0.
AAR metadata file: C:\Users\ASUS.gradle\caches\transforms-3\37bfbfccd4c6da91c9f2f0341a36f0de\transformed\jetified-emoji2-views-helper-1.0.0\META-INF\com\android\build\gradle\aar-metadata.properties.
.> A failure occurred while executing com.android.build.gradle.internal.tasks.CheckAarMetadataWorkAction
.> The minCompileSdk (31) specified in a
dependency's AAR metadata (META-INF/com/android/build/gradle/aar-metadata.properties)
is greater than this module's compileSdkVersion (android-30).
Dependency: androidx.emoji2:emoji2:1.0.0.
AAR metadata file: C:\Users\ASUS.gradle\caches\transforms-3\5bcef036683d3be56754a92e0512461a\transformed\jetified-emoji2-1.0.0\META-INF\com\android\build\gradle\aar-metadata.properties.
.> A failure occurred while executing com.android.build.gradle.internal.tasks.CheckAarMetadataWorkAction
.> The minCompileSdk (31) specified in a
dependency's AAR metadata (META-INF/com/android/build/gradle/aar-metadata.properties)
is greater than this module's compileSdkVersion (android-30).
Dependency: androidx.core:core:1.7.0.
AAR metadata file: C:\Users\ASUS.gradle\caches\transforms-3\056a8fbc280e47ced48cf8bf3b636210\transformed\core-1.7.0\META-INF\com\android\build\gradle\aar-metadata.properties.
.> A failure occurred while executing com.android.build.gradle.internal.tasks.CheckAarMetadataWorkAction
.> The minCompileSdk (31) specified in a
dependency's AAR metadata (META-INF/com/android/build/gradle/aar-metadata.properties)
is greater than this module's compileSdkVersion (android-30).
Dependency: androidx.lifecycle:lifecycle-process:2.4.0.
AAR metadata file: C:\Users\ASUS.gradle\caches\transforms-3\74bea9fc6e761f50ff5f7907cd190e20\transformed\jetified-lifecycle-process-2.4.0\META-INF\com\android\build\gradle\aar-metadata.properties.
.> A failure occurred while executing com.android.build.gradle.internal.tasks.CheckAarMetadataWorkAction
.> The minCompileSdk (31) specified in a
dependency's AAR metadata (META-INF/com/android/build/gradle/aar-metadata.properties)
is greater than this module's compileSdkVersion (android-30).
Dependency: androidx.lifecycle:lifecycle-runtime:2.4.0.
AAR metadata file: C:\Users\ASUS.gradle\caches\transforms-3\525e4913fd690e9549498febc17fcc14\transformed\lifecycle-runtime-2.4.0\META-INF\com\android\build\gradle\aar-metadata.properties.
Just install the patch according to your current react-native version:
https://github.com/facebook/react-native/issues/35210
In my case I updated react-native to patch version 0.64.4 in package.json file.
Run npm install.
Run cd android && ./gradlew clean to clean Android artifacts.
Re-run your app.
I hope this help.
Related
Resources working on other XML layouts on certain layouts
are grayed out, inaccessible
This is causing some widgets not to work - Error Android resource linking failed on every card-view widget
This is the Build output
Build failed
:app:processDebugResources
app/src/main/res/layout/bill_payment.xml
Android resource linking failed
Android resource linking failed
Android resource linking failed
Android resource linking failed
Android resource linking failed
Android resource linking failed
Android resource linking failed
Android resource linking failed
Android resource linking failed
Android resource linking failed
Android resource linking failed
Android resource linking failed
Android resource linking failed
Android resource linking failed
Android resource linking failed
Android resource linking failed
Android resource linking failed
Android resource linking failed
Android resource linking failed
Android resource linking failed
Android resource linking failed
This is the Event Log
13:02 Executing tasks: [:app:assembleDebug] in project C:\Users\acer\Downloads.ankApp\BankApp
13:02 Gradle build failed in 24 s 131 ms
14:30 Executing tasks: [:app:assembleDebug] in project C:\Users\acer\Downloads.ankApp\BankApp
14:32 Gradle build failed in 2 m 13 s 786 ms
The fact that they are greyed out simply means that those items are not being used in your layout. You can remove them.
As far as the 'resource linking failed' error, that could be due to a number of reasons in your XML. It could be caused by having the the code below twice in an XML in the drawable folder:
<?xml version="1.0" encoding="UTF-8"?>
<?xml version="1.0" encoding="UTF-8"?>
Take a close look at the error logging to try to determine which specific XML file is causing the error.
Also, the error could be caused by upgrading the support libraries to 28 and above without having your compileSdkVersion set to 28 or higher.
Upon installing jhipster 5.4.2 (skipping user management):
jhipster --skip-user-management
I get the following error:
ERROR Failed to compile with 1 errors 22:02:12
This relative module was not found:
./user-management in ./src/main/webapp/app/shared/reducers/index.ts
✖ 「wdm」: 971 modules
ERROR in ./src/main/webapp/app/shared/reducers/index.ts
Module not found: Error: Can't resolve './user-management' in '/Users/spasco/code/web/polarisnousers/src/main/webapp/app/shared/reducers'
ℹ 「wdm」: Failed to compile.
Is this a bug or expected behavior?
I tried building a demo app following Ionic's tutorials and I seem to be stuck.
ionic serve launches a browser with the new app quite nicely, but when i try on an android emulator or device, things get a bit confusing.
c:\ionic\mec>ionic run android
Running command: "C:\Program Files\nodejs\node.exe" c:\ionic\mec\hooks\after_prepare\010_add_platform_class.js c:\ionic\mec
add to body class: platform-android
ANDROID_HOME=C:\Users\Kwamena\AppData\Local\Android\sdk
JAVA_HOME=C:\Java\jdk1.8.0_121
Subproject Path: CordovaLib
NDK is missing a "platforms" directory.
If you are using NDK, verify the ndk.dir is set to a valid NDK directory. It is
currently set to D:\emmasony\data\andriod\android-ndk-r10c;.
If you are not using NDK, unset the NDK variable from ANDROID_NDK_HOME or local.
properties to remove this warning.
FAILURE: Build failed with an exception.
* Where:
Build file 'C:\ionic\mec\platforms\android\build.gradle' line: 20
* What went wrong:
A problem occurred evaluating root project 'android'.
> org/bouncycastle/jce/provider/BouncyCastleProvider
* 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: 4.015 secs
Error: cmd: Command failed with exit code 1 Error output:
FAILURE: Build failed with an exception.
* Where:
Build file 'C:\ionic\mec\platforms\android\build.gradle' line: 20
* What went wrong:
A problem occurred evaluating root project 'android'.
> org/bouncycastle/jce/provider/BouncyCastleProvider
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug
option to get more log output.
build.gradle-line: 20 --> apply plugin: 'com.android.application'
Same is the issue when cordova run android is used.
Runnung with Ant:
c:\ionic\mec>ionic run android -- --ant
Running command: "C:\Program Files\nodejs\node.exe" c:\ionic\mec\hooks\after_prepare\010_add_platform_class.js c:\ionic\mec
add to body class: platform-android
ANDROID_HOME=C:\Users\Kwamena\AppData\Local\Android\sdk
JAVA_HOME=C:\Java\jdk1.8.0_121
Buildfile: c:\ionic\mec\platforms\android\build.xml
Buildfile: c:\ionic\mec\platforms\android\build.xml
-set-mode-check:
-set-debug-files:
-check-env:
[checkenv] Android SDK Tools Revision 25.2.3
[checkenv] Installed at C:\Users\Kwamena\AppData\Local\Android\sdk
-setup:
[echo] Project Name: mec774388
-check-env:
[checkenv] Android SDK Tools Revision 25.2.3
[checkenv] Installed at C:\Users\Kwamena\AppData\Local\Android\sdk
-setup:
[echo] Project Name: mec774388
[gettype] Project Type: Application
-set-debug-mode:
-debug-obfuscation-check:
-pre-build:
-build-setup:
[gettype] Project Type: Application
-pre-clean:
clean:
[delete] Deleting directory c:\ionic\mec\platforms\android\bin
[delete] Deleting directory c:\ionic\mec\platforms\android\gen
[getlibpath] Library dependencies:
[getlibpath]
[getlibpath] ------------------
[getlibpath] Ordered libraries:
[getbuildtools] Using latest Build Tools: 25.0.0
[echo] Resolving Build Target for mec774388...
nodeps:
-check-env:
[checkenv] Android SDK Tools Revision 25.2.3
[checkenv] Installed at C:\Users\Kwamena\AppData\Local\Android\sdk
-setup:
[echo] Project Name: mec774388
[gettype] Project Type: Android Library
-pre-clean:
clean:
[delete] Deleting directory C:\ionic\mec\platforms\android\CordovaLib\bin
[delete] Deleting directory C:\ionic\mec\platforms\android\CordovaLib\gen
BUILD SUCCESSFUL
Total time: 2 seconds
[gettarget] Project Target: Android 7.1.1
[gettarget] API level: 25
[echo] ----------
[echo] Creating output directories if needed...
[mkdir] Created dir: c:\ionic\mec\platforms\android\bin
[mkdir] Created dir: c:\ionic\mec\platforms\android\bin\res
[mkdir] Created dir: c:\ionic\mec\platforms\android\bin\rsObj
[mkdir] Created dir: c:\ionic\mec\platforms\android\bin\rsLibs
[mkdir] Created dir: c:\ionic\mec\platforms\android\gen
[mkdir] Created dir: c:\ionic\mec\platforms\android\bin\classes
[mkdir] Created dir: c:\ionic\mec\platforms\android\bin\dexedLibs
[echo] ----------
[echo] Resolving Dependencies for mec774388...
[dependency] Library dependencies:
[dependency]
[dependency] ------------------
[dependency] Ordered libraries:
[dependency]
[dependency] ------------------
[echo] ----------
[echo] Building Libraries with 'debug'...
nodeps:
-set-mode-check:
-set-debug-files:
-check-env:
[checkenv] Android SDK Tools Revision 25.2.3
[checkenv] Installed at C:\Users\Kwamena\AppData\Local\Android\sdk
-setup:
[echo] Project Name: mec774388
[gettype] Project Type: Android Library
-set-debug-mode:
-debug-obfuscation-check:
-pre-build:
-build-setup:
[getbuildtools] Using latest Build Tools: 25.0.0
[echo] Resolving Build Target for mec774388...
[gettarget] Project Target: Android 7.1.1
[gettarget] API level: 25
[echo] ----------
[echo] Creating output directories if needed...
[mkdir] Created dir: C:\ionic\mec\platforms\android\CordovaLib\bin
[mkdir] Created dir: C:\ionic\mec\platforms\android\CordovaLib\bin\res
[mkdir] Created dir: C:\ionic\mec\platforms\android\CordovaLib\bin\rsObj
[mkdir] Created dir: C:\ionic\mec\platforms\android\CordovaLib\bin\rsLibs
[mkdir] Created dir: C:\ionic\mec\platforms\android\CordovaLib\gen
[mkdir] Created dir: C:\ionic\mec\platforms\android\CordovaLib\bin\classes
[mkdir] Created dir: C:\ionic\mec\platforms\android\CordovaLib\bin\dexedLibs
[echo] ----------
[echo] Resolving Dependencies for mec774388...
[dependency] Library dependencies:
[dependency] No Libraries
[dependency]
[dependency] ------------------
-code-gen:
[mergemanifest] Merging AndroidManifest files into one.
[mergemanifest] Manifest merger disabled. Using project manifest only.
[echo] Handling aidl files...
[aidl] No AIDL files to compile.
[echo] ----------
[echo] Handling RenderScript files...
[echo] ----------
[echo] Handling Resources...
[aapt] Generating resource IDs...
[echo] ----------
[echo] Handling BuildConfig class...
[buildconfig] Generating BuildConfig class.
-pre-compile:
-compile:
[javac] Compiling 38 source files to C:\ionic\mec\platforms\android\CordovaLib\bin\classes
[javac] warning: [options] source value 1.5 is obsolete and will be removed in a future release
[javac] warning: [options] target value 1.5 is obsolete and will be removed in a future release
[javac] warning: [options] To suppress warnings about obsolete options, use -Xlint:-options.
[javac] Note: Some input files use or override a deprecated API.
[javac] Note: Recompile with -Xlint:deprecation for details.
[javac] 3 warnings
[echo] Creating library output jar file...
[jar] Building jar: C:\ionic\mec\platforms\android\CordovaLib\bin\classes.jar
-post-compile:
-obfuscate:
-dex:
[echo] Library project: do not convert bytecode...
-crunch:
[crunch] Crunching PNG Files in source dir: C:\ionic\mec\platforms\android\CordovaLib\res
[crunch] To destination dir: C:\ionic\mec\platforms\android\CordovaLib\bin\res
[crunch] Crunched 0 PNG files to update cache
-package-resources:
[echo] Library project: do not package resources...
-package:
[echo] Library project: do not package apk...
-post-package:
-do-debug:
[echo] Library project: do not create apk...
[propertyfile] Creating new property file: C:\ionic\mec\platforms\android\CordovaLib\bin\build.prop
[propertyfile] Updating property file: C:\ionic\mec\platforms\android\CordovaLib\bin\build.prop
[propertyfile] Updating property file: C:\ionic\mec\platforms\android\CordovaLib\bin\build.prop
[propertyfile] Updating property file: C:\ionic\mec\platforms\android\CordovaLib\bin\build.prop
-post-build:
debug:
-code-gen:
[mergemanifest] Merging AndroidManifest files into one.
[mergemanifest] Manifest merger disabled. Using project manifest only.
[echo] Handling aidl files...
[aidl] No AIDL files to compile.
[echo] ----------
[echo] Handling RenderScript files...
[echo] ----------
[echo] Handling Resources...
[aapt] Generating resource IDs...
[echo] ----------
[echo] Handling BuildConfig class...
[buildconfig] Generating BuildConfig class.
-pre-compile:
-compile:
[javac] Compiling 8 source files to c:\ionic\mec\platforms\android\bin\classes
[javac] warning: [options] source value 1.5 is obsolete and will be removed in a future release
[javac] warning: [options] target value 1.5 is obsolete and will be removed in a future release
[javac] warning: [options] To suppress warnings about obsolete options, use -Xlint:-options.
[javac] Note: c:\ionic\mec\platforms\android\src\org\apache\cordova\splashscreen\SplashScreen.java uses or overrides a deprecated API.
[javac] Note: Recompile with -Xlint:deprecation for details.
[javac] 3 warnings
-post-compile:
-obfuscate:
-dex:
[dex] input: c:\ionic\mec\platforms\android\bin\classes
[dex] input: C:\ionic\mec\platforms\android\CordovaLib\bin\classes.jar
[dex] Pre-Dexing C:\ionic\mec\platforms\android\CordovaLib\bin\classes.jar -> classes-a4da51b1799d4fae35ce5cc3e150107e.jar
[dex] Converting compiled files and external libraries into c:\ionic\mec\platforms\android\bin\classes.dex...
[dx] Merged dex #1 (33 defs/28.5KiB)
[dx] Merged dex #2 (87 defs/110.0KiB)
[dx] Result is 120 defs/164.8KiB. Took 0.3s
-crunch:
[crunch] Crunching PNG Files in source dir: c:\ionic\mec\platforms\android\res
[crunch] To destination dir: c:\ionic\mec\platforms\android\bin\res
[crunch] Processing image to cache: c:\ionic\mec\platforms\android\res\drawable-land-hdpi\screen.png => c:\ionic\mec\platforms\android\bin\res\drawable-land
-hdpi\screen.png
[crunch] (processed image to cache entry c:\ionic\mec\platforms\android\bin\res\drawable-land-hdpi\screen.png: 97% size of source)
[crunch] Processing image to cache: c:\ionic\mec\platforms\android\res\drawable-land-ldpi\screen.png => c:\ionic\mec\platforms\android\bin\res\drawable-land
-ldpi\screen.png
[crunch] (processed image to cache entry c:\ionic\mec\platforms\android\bin\res\drawable-land-ldpi\screen.png: 96% size of source)
[crunch] Processing image to cache: c:\ionic\mec\platforms\android\res\drawable-land-mdpi\screen.png => c:\ionic\mec\platforms\android\bin\res\drawable-land
-mdpi\screen.png
[crunch] (processed image to cache entry c:\ionic\mec\platforms\android\bin\res\drawable-land-mdpi\screen.png: 97% size of source)
[crunch] Processing image to cache: c:\ionic\mec\platforms\android\res\drawable-land-xhdpi\screen.png => c:\ionic\mec\platforms\android\bin\res\drawable-lan
d-xhdpi\screen.png
[crunch] (processed image to cache entry c:\ionic\mec\platforms\android\bin\res\drawable-land-xhdpi\screen.png: 99% size of source)
[crunch] Processing image to cache: c:\ionic\mec\platforms\android\res\drawable-port-hdpi\screen.png => c:\ionic\mec\platforms\android\bin\res\drawable-port
-hdpi\screen.png
[crunch] (processed image to cache entry c:\ionic\mec\platforms\android\bin\res\drawable-port-hdpi\screen.png: 97% size of source)
[crunch] Processing image to cache: c:\ionic\mec\platforms\android\res\drawable-port-ldpi\screen.png => c:\ionic\mec\platforms\android\bin\res\drawable-port
-ldpi\screen.png
[crunch] (processed image to cache entry c:\ionic\mec\platforms\android\bin\res\drawable-port-ldpi\screen.png: 97% size of source)
[crunch] Processing image to cache: c:\ionic\mec\platforms\android\res\drawable-port-mdpi\screen.png => c:\ionic\mec\platforms\android\bin\res\drawable-port
-mdpi\screen.png
[crunch] (processed image to cache entry c:\ionic\mec\platforms\android\bin\res\drawable-port-mdpi\screen.png: 99% size of source)
[crunch] Processing image to cache: c:\ionic\mec\platforms\android\res\drawable-port-xhdpi\screen.png => c:\ionic\mec\platforms\android\bin\res\drawable-por
t-xhdpi\screen.png
[crunch] (processed image to cache entry c:\ionic\mec\platforms\android\bin\res\drawable-port-xhdpi\screen.png: 99% size of source)
[crunch] Processing image to cache: c:\ionic\mec\platforms\android\res\mipmap-hdpi\icon.png => c:\ionic\mec\platforms\android\bin\res\mipmap-hdpi\icon.png
[crunch] (processed image to cache entry c:\ionic\mec\platforms\android\bin\res\mipmap-hdpi\icon.png: 67% size of source)
[crunch] Processing image to cache: c:\ionic\mec\platforms\android\res\mipmap-ldpi\icon.png => c:\ionic\mec\platforms\android\bin\res\mipmap-ldpi\icon.png
[crunch] (processed image to cache entry c:\ionic\mec\platforms\android\bin\res\mipmap-ldpi\icon.png: 0% size of source)
[crunch] Processing image to cache: c:\ionic\mec\platforms\android\res\mipmap-mdpi\icon.png => c:\ionic\mec\platforms\android\bin\res\mipmap-mdpi\icon.png
[crunch] (processed image to cache entry c:\ionic\mec\platforms\android\bin\res\mipmap-mdpi\icon.png: 0% size of source)
[crunch] Processing image to cache: c:\ionic\mec\platforms\android\res\mipmap-xhdpi\icon.png => c:\ionic\mec\platforms\android\bin\res\mipmap-xhdpi\icon.png
[crunch] (processed image to cache entry c:\ionic\mec\platforms\android\bin\res\mipmap-xhdpi\icon.png: 53% size of source)
[crunch] Crunched 12 PNG files to update cache
-package-resources:
[aapt] Creating full resource package...
-package:
[apkbuilder] Current build type is different than previous build: forced apkbuilder run.
[apkbuilder] Creating mec774388-debug-unaligned.apk and signing it with a debug key...
-post-package:
-do-debug:
[zipalign] Running zip align on final apk...
[echo] Debug Package: c:\ionic\mec\platforms\android\bin\mec774388-debug.apk
[propertyfile] Creating new property file: c:\ionic\mec\platforms\android\bin\build.prop
[propertyfile] Updating property file: c:\ionic\mec\platforms\android\bin\build.prop
[propertyfile] Updating property file: c:\ionic\mec\platforms\android\bin\build.prop
[propertyfile] Updating property file: c:\ionic\mec\platforms\android\bin\build.prop
-post-build:
debug:
BUILD SUCCESSFUL
Total time: 1 minute 37 seconds
Built the following apk(s):
c:/ionic/mec/platforms/android/bin/mec774388-debug.apk
ANDROID_HOME=C:\Users\Kwamena\AppData\Local\Android\sdk
JAVA_HOME=C:\Java\jdk1.8.0_121
No target specified, deploying to device 'FA35VW901817'.
Skipping build...
Built the following apk(s):
c:/ionic/mec/platforms/android/bin/mec774388-debug.apk
Using apk: c:/ionic/mec/platforms/android/bin/mec774388-debug.apk
Package name: com.ionicframework.mec774388
LAUNCH SUCCESS
System Info
c:\ionic\mec>ionic info
Your system information:
ordova CLI: 6.5.0
Ionic CLI Version: 2.2.1
Ionic App Lib Version: 2.1.7
ios-deploy version: Not installed
ios-sim version: Not installed
OS: Windows 8.1
Node Version: v5.0.0
Xcode version: Not installed
Also,
c:\ionic\mec>gradle -v
------------------------------------------------------------
Gradle 3.3
------------------------------------------------------------
Build time: 2017-01-03 15:31:04 UTC
Revision: 075893a3d0798c0c1f322899b41ceca82e4e134b
Groovy: 2.4.7
Ant: Apache Ant(TM) version 1.9.6 compiled on June 29 2015
JVM: 1.8.0_121 (Oracle Corporation 25.121-b13)
OS: Windows 8.1 6.3 amd64
Running cordova requirements
c:\ionic\mec>cordova requirements
Requirements check results for android:
Java JDK: installed 1.8.0
Android SDK: installed true
Android target: installed android-8,android-10,android-11,android-14,android-15,
android-16,android-17,android-18,android-19,android-20,android-21,android-22,and
roid-MNC,android-23,android-24,android-25,Google Inc.:Glass Development Kit Prev
iew:19,Google Inc.:Google APIs:19,Google Inc.:Google APIs:21,Google Inc.:Google
APIs:22,Google Inc.:Google APIs:23
Gradle: installed
I figure I'll soon use plugins that rely exclusively on Gradle. Any help would be much appreciated.
Some other issues led me to reinstall Windows, Android Studio and redownload the Android SDK. Everything went smoothly from there.
I am assembling the "Cassandra-Spark-Connector". I just followed the steps below:
Git clone connector code
Run "sbt assembly"
During the assembly phase I am getting the following error:
[info] Done updating.
[warn] There may be incompatibilities among your library dependencies.
[warn] Here are some of the libraries that were evicted:
[warn] * com.eed3si9n:sbt-assembly:0.11.2 -> 0.13.0
[warn] Run 'evicted' to see detailed eviction warnings
[info] Compiling 5 Scala sources to /home/xxxxxx/Development/iAdLearning/spark-cassandra-connector/project/target/scala-2.10/sbt-0.13/classes...
[error] /home/xxxxxx/Development/iAdLearning/spark-cassandra-connector/project/Settings.scala:23: object Plugin is not a member of package sbtassembly
[error] import sbtassembly.Plugin._
[error] ^
[error] /home/xxxxxx/Development/iAdLearning/spark-cassandra-connector/project/Settings.scala:24: not found: object AssemblyKeys
[error] import AssemblyKeys._
[error] ^
[error] /home/xxxxxx/Development/iAdLearning/spark-cassandra-connector/project/Settings.scala:217: not found: value assemblySettings
[error] lazy val sbtAssemblySettings = assemblySettings ++ Seq(
[error] ^
[error] three errors found
[error] (compile:compileIncremental) Compilation failed
I am running sbt 0.13.6
You can always use the packaged sbt by running.
./sbt/sbt assembly
This will automatically download and use a valid version of sbt.
Building Spark java connector requires sbt-assembly version 0.11.2 as defined in plugins.bat. It is likely you have a newer sbt-assembly version (ver. 0.13.0) installed in global plugins folder (~.sbt\0.13\plugins) which is causing this issue.
Kindly rename the plugins folder in ~.sbt\0.13 and try to build it again.
I tried to install bower using puppet. It failed with the error message "Provider npm is not functional on this host".
I ran this on a fresh vm with only puppet / vim installed, and the following module installed.
puppet module install willdurand/nodejs
Site.pp:
include nodejs
package { 'express':
provider => npm
}
This was the error:
root#puppet:~# puppet apply site.pp
Warning: Could not retrieve fact fqdn
Warning: Config file /etc/puppet/hiera.yaml not found, using Hiera defaults
Notice: Compiled catalog for chef in environment production in 0.29 seconds
Notice: /Stage[main]/Nodejs/Nodejs::Install[nodejs-stable]/Package[make]/ensure: ensure changed 'purged' to 'present'
Notice: /Stage[main]/Nodejs/Nodejs::Install[nodejs-stable]/File[nodejs-install-d ir]/ensure: created
Notice: /Stage[main]/Nodejs/Nodejs::Install[nodejs-stable]/Package[g++]/ensure: ensure changed 'purged' to 'present'
Notice: /Stage[main]/Nodejs/Nodejs::Install[nodejs-stable]/File[/usr/local/node/ node-v0.10.22]/ensure: created
Notice: /Stage[main]/Nodejs/Nodejs::Install[nodejs-stable]/Wget::Fetch[nodejs-do wnload-v0.10.22]/Exec[wget-nodejs-download-v0.10.22]/returns: executed successfu lly
Notice: /Stage[main]/Nodejs/Nodejs::Install[nodejs-stable]/Exec[nodejs-unpack-v0 .10.22]/returns: executed successfully
Notice: /Stage[main]/Nodejs/Nodejs::Install[nodejs-stable]/Exec[nodejs-make-inst all-v0.10.22]/returns: executed successfully
Error: /Stage[main]/Nodejs/Nodejs::Install[nodejs-stable]/Package[semver]: Provi der gem is not functional on this host
Error: /Stage[main]//Package[express]: Provider npm is not functional on this ho st
Notice: /Stage[main]/Nodejs/Nodejs::Install[nodejs-stable]/File[nodejs-symlink-b in-with-version-v0.10.22]: Dependency Package[semver] has failures: true
Warning: /Stage[main]/Nodejs/Nodejs::Install[nodejs-stable]/File[nodejs-symlink- bin-with-version-v0.10.22]: Skipping because of failed dependencies
Notice: /Stage[main]/Nodejs/File[/usr/local/bin/node]: Dependency Package[semver ] has failures: true
Warning: /Stage[main]/Nodejs/File[/usr/local/bin/node]: Skipping because of fail ed dependencies
Notice: /Stage[main]/Nodejs/File[/usr/local/bin/npm]: Dependency Package[semver] has failures: true
Warning: /Stage[main]/Nodejs/File[/usr/local/bin/npm]: Skipping because of faile d dependencies
The only constraint to the npm provider to be enabled is if it finds npm on the path. The module creates /usr/local/bin/npm which means that /usr/local/bin is not present in your PATH variable.
Try
package { 'express':
provider => 'npm',
require => Class['nodejs'], #This fixed it in my case
}