-
Notifications
You must be signed in to change notification settings - Fork 78
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 fail #19
Comments
can someone please fix that? |
Same problem. |
Hi, I'm having this same problem. Has anyone found a solution or workaround? I seem to have no issues building the sample. |
RESOLVED. Step 3. Add fixed plugin back to your project: |
Doesn't build, see logs:
`
BUILD SUCCESSFUL in 0s
1 actionable task: 1 executed
Subproject Path: CordovaLib
Subproject Path: app
publishNonDefault is deprecated and has no effect anymore. All variants are now published.
+-----------------------------------------------------------------
| cordova-android-support-gradle-release: 27.+
+-----------------------------------------------------------------
Configuration 'compile' in project ':app' is deprecated. Use 'implementation' instead.
The Task.leftShift(Closure) method has been deprecated and is scheduled to be removed in Gradle 5.0. Please use Task.doLast(Action) instead.
at build_c6ebw0kvkzaz6tslj5w5mfm3f.run(/Users/taufpate/Dropbox/Desarrollos/AFS/appVMS/platforms/android/app/build.gradle:155)
Could not find google-services.json while looking in [src/nullnull/debug, src/debug/nullnull, src/nullnull, src/debug, src/nullnullDebug]
registerResGeneratingTask is deprecated, use registerGeneratedFolders(FileCollection)
Could not find google-services.json while looking in [src/nullnull/release, src/release/nullnull, src/nullnull, src/release, src/nullnullRelease]
registerResGeneratingTask is deprecated, use registerGeneratedFolders(FileCollection)
:CordovaLib:preBuild UP-TO-DATE
:CordovaLib:preDebugBuild UP-TO-DATE
:CordovaLib:compileDebugAidl
:CordovaLib:compileDebugRenderscript
:CordovaLib:checkDebugManifest
:CordovaLib:generateDebugBuildConfig
:CordovaLib:prepareLintJar
:CordovaLib:generateDebugResValues
:CordovaLib:generateDebugResources
:CordovaLib:packageDebugResources
:CordovaLib:platformAttrExtractor
:CordovaLib:processDebugManifest
:CordovaLib:javaPreCompileDebug
:CordovaLib:processDebugJavaRes NO-SOURCE
:app:preBuild UP-TO-DATE
:app:preDebugBuild
:app:compileDebugAidl
:CordovaLib:packageDebugRenderscript NO-SOURCE
:app:compileDebugRenderscript
:app:checkDebugManifest
:app:generateDebugBuildConfig
:app:prepareLintJar
:app:generateDebugResValues
:app:generateDebugResources
:app:processDebugGoogleServices
Parsing json file: /Users/taufpate/Dropbox/Desarrollos/AFS/appVMS/platforms/android/app/google-services.json
:app:mergeDebugResources
:CordovaLib:processDebugResources
:CordovaLib:generateDebugSources
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
:CordovaLib:compileDebugJavaWithJavac
:CordovaLib:transformClassesAndResourcesWithPrepareIntermediateJarsForDebug
:app:createDebugCompatibleScreenManifests
:app:processDebugManifest
:app:splitsDiscoveryTaskDebug
:app:processDebugResources
:app:generateDebugSources
:app:javaPreCompileDebug
/Users/taufpate/Dropbox/Desarrollos/AFS/appVMS/platforms/android/app/src/main/java/com/dealrinc/gmvScanner/CDVAndroidScanner.java:72: error: cannot access zza
Barcode barcode = data.getParcelableExtra(BarcodeCaptureActivity.BarcodeObject);
^
class file for com.google.android.gms.common.internal.safeparcel.zza not found
/Users/taufpate/Dropbox/Desarrollos/AFS/appVMS/platforms/android/app/src/main/java/com/dealrinc/gmvScanner/SecondaryActivity.java:108: error: incompatible types: inference variable T has incompatible upper bounds Barcode,Parcelable
Barcode barcode = data.getParcelableExtra(BarcodeCaptureActivity.BarcodeObject);
^
where T is a type-variable:
T extends Parcelable declared in method getParcelableExtra(String)
/Users/taufpate/Dropbox/Desarrollos/AFS/appVMS/platforms/android/app/src/main/java/com/dealrinc/gmvScanner/SecondaryActivity.java:109: error: no suitable method found for putExtra(String,Barcode)
d.putExtra(BarcodeObject, barcode);
^
method Intent.putExtra(String,boolean) is not applicable
(argument mismatch; Barcode cannot be converted to boolean)
method Intent.putExtra(String,byte) is not applicable
(argument mismatch; Barcode cannot be converted to byte)
method Intent.putExtra(String,char) is not applicable
(argument mismatch; Barcode cannot be converted to char)
method Intent.putExtra(String,short) is not applicable
(argument mismatch; Barcode cannot be converted to short)
method Intent.putExtra(String,int) is not applicable
(argument mismatch; Barcode cannot be converted to int)
method Intent.putExtra(String,long) is not applicable
(argument mismatch; Barcode cannot be converted to long)
method Intent.putExtra(String,float) is not applicable
(argument mismatch; Barcode cannot be converted to float)
method Intent.putExtra(String,double) is not applicable
(argument mismatch; Barcode cannot be converted to double)
method Intent.putExtra(String,String) is not applicable
(argument mismatch; Barcode cannot be converted to String)
method Intent.putExtra(String,CharSequence) is not applicable
(argument mismatch; Barcode cannot be converted to CharSequence)
method Intent.putExtra(String,Parcelable) is not applicable
(argument mismatch; Barcode cannot be converted to Parcelable)
method Intent.putExtra(String,Parcelable[]) is not applicable
(argument mismatch; Barcode cannot be converted to Parcelable[])
method Intent.putExtra(String,Serializable) is not applicable
(argument mismatch; Barcode cannot be converted to Serializable)
method Intent.putExtra(String,boolean[]) is not applicable
(argument mismatch; Barcode cannot be converted to boolean[])
method Intent.putExtra(String,byte[]) is not applicable
(argument mismatch; Barcode cannot be converted to byte[])
method Intent.putExtra(String,short[]) is not applicable
(argument mismatch; Barcode cannot be converted to short[])
method Intent.putExtra(String,char[]) is not applicable
(argument mismatch; Barcode cannot be converted to char[])
method Intent.putExtra(String,int[]) is not applicable
(argument mismatch; Barcode cannot be converted to int[])
method Intent.putExtra(String,long[]) is not applicable
(argument mismatch; Barcode cannot be converted to long[])
method Intent.putExtra(String,float[]) is not applicable
(argument mismatch; Barcode cannot be converted to float[])
method Intent.putExtra(String,double[]) is not applicable
(argument mismatch; Barcode cannot be converted to double[])
method Intent.putExtra(String,String[]) is not applicable
(argument mismatch; Barcode cannot be converted to String[])
method Intent.putExtra(String,CharSequence[]) is not applicable
(argument mismatch; Barcode cannot be converted to CharSequence[])
method Intent.putExtra(String,Bundle) is not applicable
(argument mismatch; Barcode cannot be converted to Bundle)
/Users/taufpate/Dropbox/Desarrollos/AFS/appVMS/platforms/android/app/src/main/java/com/dealrinc/gmvScanner/BarcodeCaptureActivity.java:516: error: no suitable method found for putExtra(String,Barcode)
data.putExtra(BarcodeObject, barcode);
^
method Intent.putExtra(String,boolean) is not applicable
(argument mismatch; Barcode cannot be converted to boolean)
method Intent.putExtra(String,byte) is not applicable
(argument mismatch; Barcode cannot be converted to byte)
method Intent.putExtra(String,char) is not applicable
(argument mismatch; Barcode cannot be converted to char)
method Intent.putExtra(String,short) is not applicable
(argument mismatch; Barcode cannot be converted to short)
method Intent.putExtra(String,int) is not applicable
(argument mismatch; Barcode cannot be converted to int)
method Intent.putExtra(String,long) is not applicable
(argument mismatch; Barcode cannot be converted to long)
method Intent.putExtra(String,float) is not applicable
(argument mismatch; Barcode cannot be converted to float)
method Intent.putExtra(String,double) is not applicable
(argument mismatch; Barcode cannot be converted to double)
method Intent.putExtra(String,String) is not applicable
(argument mismatch; Barcode cannot be converted to String)
method Intent.putExtra(String,CharSequence) is not applicable
(argument mismatch; Barcode cannot be converted to CharSequence)
method Intent.putExtra(String,Parcelable) is not applicable
(argument mismatch; Barcode cannot be converted to Parcelable)
method Intent.putExtra(String,Parcelable[]) is not applicable
(argument mismatch; Barcode cannot be converted to Parcelable[])
method Intent.putExtra(String,Serializable) is not applicable
(argument mismatch; Barcode cannot be converted to Serializable)
method Intent.putExtra(String,boolean[]) is not applicable
(argument mismatch; Barcode cannot be converted to boolean[])
method Intent.putExtra(String,byte[]) is not applicable
(argument mismatch; Barcode cannot be converted to byte[])
method Intent.putExtra(String,short[]) is not applicable
(argument mismatch; Barcode cannot be converted to short[])
method Intent.putExtra(String,char[]) is not applicable
(argument mismatch; Barcode cannot be converted to char[])
method Intent.putExtra(String,int[]) is not applicable
(argument mismatch; Barcode cannot be converted to int[])
method Intent.putExtra(String,long[]) is not applicable
(argument mismatch; Barcode cannot be converted to long[])
method Intent.putExtra(String,float[]) is not applicable
(argument mismatch; Barcode cannot be converted to float[])
method Intent.putExtra(String,double[]) is not applicable
(argument mismatch; Barcode cannot be converted to double[])
method Intent.putExtra(String,String[]) is not applicable
(argument mismatch; Barcode cannot be converted to String[])
method Intent.putExtra(String,CharSequence[]) is not applicable
(argument mismatch; Barcode cannot be converted to CharSequence[])
method Intent.putExtra(String,Bundle) is not applicable
(argument mismatch; Barcode cannot be converted to Bundle)
/Users/taufpate/Dropbox/Desarrollos/AFS/appVMS/platforms/android/app/src/main/java/com/dealrinc/gmvScanner/BarcodeCaptureActivity.java:523: error: no suitable method found for putExtra(String,Barcode)
data.putExtra(BarcodeObject, barcode);
^
method Intent.putExtra(String,boolean) is not applicable
(argument mismatch; Barcode cannot be converted to boolean)
method Intent.putExtra(String,byte) is not applicable
(argument mismatch; Barcode cannot be converted to byte)
method Intent.putExtra(String,char) is not applicable
(argument mismatch; Barcode cannot be converted to char)
method Intent.putExtra(String,short) is not applicable
(argument mismatch; Barcode cannot be converted to short)
method Intent.putExtra(String,int) is not applicable
(argument mismatch; Barcode cannot be converted to int)
method Intent.putExtra(String,long) is not applicable
(argument mismatch; Barcode cannot be converted to long)
method Intent.putExtra(String,float) is not applicable
(argument mismatch; Barcode cannot be converted to float)
method Intent.putExtra(String,double) is not applicable
(argument mismatch; Barcode cannot be converted to double)
method Intent.putExtra(String,String) is not applicable
(argument mismatch; Barcode cannot be converted to String)
method Intent.putExtra(String,CharSequence) is not applicable
(argument mismatch; Barcode cannot be converted to CharSequence)
method Intent.putExtra(String,Parcelable) is not applicable
(argument mismatch; Barcode cannot be converted to Parcelable)
method Intent.putExtra(String,Parcelable[]) is not applicable
(argument mismatch; Barcode cannot be converted to Parcelable[])
method Intent.putExtra(String,Serializable) is not applicable
(argument mismatch; Barcode cannot be converted to Serializable)
method Intent.putExtra(String,boolean[]) is not applicable
(argument mismatch; Barcode cannot be converted to boolean[])
method Intent.putExtra(String,byte[]) is not applicable
(argument mismatch; Barcode cannot be converted to byte[])
method Intent.putExtra(String,short[]) is not applicable
(argument mismatch; Barcode cannot be converted to short[])
method Intent.putExtra(String,char[]) is not applicable
(argument mismatch; Barcode cannot be converted to char[])
method Intent.putExtra(String,int[]) is not applicable
(argument mismatch; Barcode cannot be converted to int[])
method Intent.putExtra(String,long[]) is not applicable
(argument mismatch; Barcode cannot be converted to long[])
method Intent.putExtra(String,float[]) is not applicable
(argument mismatch; Barcode cannot be converted to float[])
method Intent.putExtra(String,double[]) is not applicable
(argument mismatch; Barcode cannot be converted to double[])
method Intent.putExtra(String,String[]) is not applicable
(argument mismatch; Barcode cannot be converted to String[])
method Intent.putExtra(String,CharSequence[]) is not applicable
(argument mismatch; Barcode cannot be converted to CharSequence[])
method Intent.putExtra(String,Bundle) is not applicable
(argument mismatch; Barcode cannot be converted to Bundle)
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
5 errors
:app:compileDebugJavaWithJavac FAILED
FAILURE: Build failed with an exception.
Execution failed for task ':app:compileDebugJavaWithJavac'.
Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
Get more help at https://help.gradle.org
BUILD FAILED in 8s
28 actionable tasks: 28 executed
/Users/taufpate/Dropbox/Desarrollos/AFS/appVMS/platforms/android/gradlew: Command failed with exit code 1 Error output:
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
/Users/taufpate/Dropbox/Desarrollos/AFS/appVMS/platforms/android/app/src/main/java/com/dealrinc/gmvScanner/CDVAndroidScanner.java:72: error: cannot access zza
Barcode barcode = data.getParcelableExtra(BarcodeCaptureActivity.BarcodeObject);
^
class file for com.google.android.gms.common.internal.safeparcel.zza not found
/Users/taufpate/Dropbox/Desarrollos/AFS/appVMS/platforms/android/app/src/main/java/com/dealrinc/gmvScanner/SecondaryActivity.java:108: error: incompatible types: inference variable T has incompatible upper bounds Barcode,Parcelable
Barcode barcode = data.getParcelableExtra(BarcodeCaptureActivity.BarcodeObject);
^
where T is a type-variable:
T extends Parcelable declared in method getParcelableExtra(String)
/Users/taufpate/Dropbox/Desarrollos/AFS/appVMS/platforms/android/app/src/main/java/com/dealrinc/gmvScanner/SecondaryActivity.java:109: error: no suitable method found for putExtra(String,Barcode)
d.putExtra(BarcodeObject, barcode);
^
method Intent.putExtra(String,boolean) is not applicable
(argument mismatch; Barcode cannot be converted to boolean)
method Intent.putExtra(String,byte) is not applicable
(argument mismatch; Barcode cannot be converted to byte)
method Intent.putExtra(String,char) is not applicable
(argument mismatch; Barcode cannot be converted to char)
method Intent.putExtra(String,short) is not applicable
(argument mismatch; Barcode cannot be converted to short)
method Intent.putExtra(String,int) is not applicable
(argument mismatch; Barcode cannot be converted to int)
method Intent.putExtra(String,long) is not applicable
(argument mismatch; Barcode cannot be converted to long)
method Intent.putExtra(String,float) is not applicable
(argument mismatch; Barcode cannot be converted to float)
method Intent.putExtra(String,double) is not applicable
(argument mismatch; Barcode cannot be converted to double)
method Intent.putExtra(String,String) is not applicable
(argument mismatch; Barcode cannot be converted to String)
method Intent.putExtra(String,CharSequence) is not applicable
(argument mismatch; Barcode cannot be converted to CharSequence)
method Intent.putExtra(String,Parcelable) is not applicable
(argument mismatch; Barcode cannot be converted to Parcelable)
method Intent.putExtra(String,Parcelable[]) is not applicable
(argument mismatch; Barcode cannot be converted to Parcelable[])
method Intent.putExtra(String,Serializable) is not applicable
(argument mismatch; Barcode cannot be converted to Serializable)
method Intent.putExtra(String,boolean[]) is not applicable
(argument mismatch; Barcode cannot be converted to boolean[])
method Intent.putExtra(String,byte[]) is not applicable
(argument mismatch; Barcode cannot be converted to byte[])
method Intent.putExtra(String,short[]) is not applicable
(argument mismatch; Barcode cannot be converted to short[])
method Intent.putExtra(String,char[]) is not applicable
(argument mismatch; Barcode cannot be converted to char[])
method Intent.putExtra(String,int[]) is not applicable
(argument mismatch; Barcode cannot be converted to int[])
method Intent.putExtra(String,long[]) is not applicable
(argument mismatch; Barcode cannot be converted to long[])
method Intent.putExtra(String,float[]) is not applicable
(argument mismatch; Barcode cannot be converted to float[])
method Intent.putExtra(String,double[]) is not applicable
(argument mismatch; Barcode cannot be converted to double[])
method Intent.putExtra(String,String[]) is not applicable
(argument mismatch; Barcode cannot be converted to String[])
method Intent.putExtra(String,CharSequence[]) is not applicable
(argument mismatch; Barcode cannot be converted to CharSequence[])
method Intent.putExtra(String,Bundle) is not applicable
(argument mismatch; Barcode cannot be converted to Bundle)
/Users/taufpate/Dropbox/Desarrollos/AFS/appVMS/platforms/android/app/src/main/java/com/dealrinc/gmvScanner/BarcodeCaptureActivity.java:516: error: no suitable method found for putExtra(String,Barcode)
data.putExtra(BarcodeObject, barcode);
^
method Intent.putExtra(String,boolean) is not applicable
(argument mismatch; Barcode cannot be converted to boolean)
method Intent.putExtra(String,byte) is not applicable
(argument mismatch; Barcode cannot be converted to byte)
method Intent.putExtra(String,char) is not applicable
(argument mismatch; Barcode cannot be converted to char)
method Intent.putExtra(String,short) is not applicable
(argument mismatch; Barcode cannot be converted to short)
method Intent.putExtra(String,int) is not applicable
(argument mismatch; Barcode cannot be converted to int)
method Intent.putExtra(String,long) is not applicable
(argument mismatch; Barcode cannot be converted to long)
method Intent.putExtra(String,float) is not applicable
(argument mismatch; Barcode cannot be converted to float)
method Intent.putExtra(String,double) is not applicable
(argument mismatch; Barcode cannot be converted to double)
method Intent.putExtra(String,String) is not applicable
(argument mismatch; Barcode cannot be converted to String)
method Intent.putExtra(String,CharSequence) is not applicable
(argument mismatch; Barcode cannot be converted to CharSequence)
method Intent.putExtra(String,Parcelable) is not applicable
(argument mismatch; Barcode cannot be converted to Parcelable)
method Intent.putExtra(String,Parcelable[]) is not applicable
(argument mismatch; Barcode cannot be converted to Parcelable[])
method Intent.putExtra(String,Serializable) is not applicable
(argument mismatch; Barcode cannot be converted to Serializable)
method Intent.putExtra(String,boolean[]) is not applicable
(argument mismatch; Barcode cannot be converted to boolean[])
method Intent.putExtra(String,byte[]) is not applicable
(argument mismatch; Barcode cannot be converted to byte[])
method Intent.putExtra(String,short[]) is not applicable
(argument mismatch; Barcode cannot be converted to short[])
method Intent.putExtra(String,char[]) is not applicable
(argument mismatch; Barcode cannot be converted to char[])
method Intent.putExtra(String,int[]) is not applicable
(argument mismatch; Barcode cannot be converted to int[])
method Intent.putExtra(String,long[]) is not applicable
(argument mismatch; Barcode cannot be converted to long[])
method Intent.putExtra(String,float[]) is not applicable
(argument mismatch; Barcode cannot be converted to float[])
method Intent.putExtra(String,double[]) is not applicable
(argument mismatch; Barcode cannot be converted to double[])
method Intent.putExtra(String,String[]) is not applicable
(argument mismatch; Barcode cannot be converted to String[])
method Intent.putExtra(String,CharSequence[]) is not applicable
(argument mismatch; Barcode cannot be converted to CharSequence[])
method Intent.putExtra(String,Bundle) is not applicable
(argument mismatch; Barcode cannot be converted to Bundle)
/Users/taufpate/Dropbox/Desarrollos/AFS/appVMS/platforms/android/app/src/main/java/com/dealrinc/gmvScanner/BarcodeCaptureActivity.java:523: error: no suitable method found for putExtra(String,Barcode)
data.putExtra(BarcodeObject, barcode);
^
method Intent.putExtra(String,boolean) is not applicable
(argument mismatch; Barcode cannot be converted to boolean)
method Intent.putExtra(String,byte) is not applicable
(argument mismatch; Barcode cannot be converted to byte)
method Intent.putExtra(String,char) is not applicable
(argument mismatch; Barcode cannot be converted to char)
method Intent.putExtra(String,short) is not applicable
(argument mismatch; Barcode cannot be converted to short)
method Intent.putExtra(String,int) is not applicable
(argument mismatch; Barcode cannot be converted to int)
method Intent.putExtra(String,long) is not applicable
(argument mismatch; Barcode cannot be converted to long)
method Intent.putExtra(String,float) is not applicable
(argument mismatch; Barcode cannot be converted to float)
method Intent.putExtra(String,double) is not applicable
(argument mismatch; Barcode cannot be converted to double)
method Intent.putExtra(String,String) is not applicable
(argument mismatch; Barcode cannot be converted to String)
method Intent.putExtra(String,CharSequence) is not applicable
(argument mismatch; Barcode cannot be converted to CharSequence)
method Intent.putExtra(String,Parcelable) is not applicable
(argument mismatch; Barcode cannot be converted to Parcelable)
method Intent.putExtra(String,Parcelable[]) is not applicable
(argument mismatch; Barcode cannot be converted to Parcelable[])
method Intent.putExtra(String,Serializable) is not applicable
(argument mismatch; Barcode cannot be converted to Serializable)
method Intent.putExtra(String,boolean[]) is not applicable
(argument mismatch; Barcode cannot be converted to boolean[])
method Intent.putExtra(String,byte[]) is not applicable
(argument mismatch; Barcode cannot be converted to byte[])
method Intent.putExtra(String,short[]) is not applicable
(argument mismatch; Barcode cannot be converted to short[])
method Intent.putExtra(String,char[]) is not applicable
(argument mismatch; Barcode cannot be converted to char[])
method Intent.putExtra(String,int[]) is not applicable
(argument mismatch; Barcode cannot be converted to int[])
method Intent.putExtra(String,long[]) is not applicable
(argument mismatch; Barcode cannot be converted to long[])
method Intent.putExtra(String,float[]) is not applicable
(argument mismatch; Barcode cannot be converted to float[])
method Intent.putExtra(String,double[]) is not applicable
(argument mismatch; Barcode cannot be converted to double[])
method Intent.putExtra(String,String[]) is not applicable
(argument mismatch; Barcode cannot be converted to String[])
method Intent.putExtra(String,CharSequence[]) is not applicable
(argument mismatch; Barcode cannot be converted to CharSequence[])
method Intent.putExtra(String,Bundle) is not applicable
(argument mismatch; Barcode cannot be converted to Bundle)
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
5 errors
FAILURE: Build failed with an exception.
Execution failed for task ':app:compileDebugJavaWithJavac'.
Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
Get more help at https://help.gradle.org
BUILD FAILED in 8s
[ERROR] An error occurred while running subprocess cordova.
The text was updated successfully, but these errors were encountered: