-
-
Notifications
You must be signed in to change notification settings - Fork 197
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 #371
Comments
@dev8gvisp You have to add the google services json file in your ".meteor\local\cordova-build\platforms\android" Folder, Mobile config json Download android studio, and open the platforms android folder, you need to download the java libraries with gradle in build.gradle configurations.all { configurations { |
The correct gradle file to modify has this line at the begining of the file: apply plugin: 'com.android.application' Add this two your dependencies: classpath 'com.google.gms:google-services:4.1.0' // I added both of these apply plugin: 'com.google.gms.google-services' configurations.all { configurations { |
This library needs dependencies that do not come bundled with the cordova app. |
Hello, i am having trouble integrating raix:push to Meteor project. It is difficult for me to follow installation procedure.
I have created new blank Meteor project. Meteor is v1.8.1
These are steps i tried:
result>APP BUILDS
result>ERROR
Where: Script /home/borivojeskrbina/Documents/meteor/push-test/.meteor/local/cordova-build/platforms/android/phonegap-plugin-push/yk17zv6fodte-push.gradle line: 6 What went wrong: A problem occurred evaluating script. home/borivojeskrbina/Documents/meteor/push-test/.meteor/local/cordova-build/platforms/android/app/AndroidManifest.xml (No such file or directory)
Questions:
I see that "phonegap-plugin-push" is already installed (v1.9.0). Does it installs with raix:puh? Documentation say it should be installed separately.
AndroidManifest.xml is located in platforms/android/app/src/main but "phonegap-plugin-push" is trying to find it in platforms/android/app. Should i copy AndroidManifest.xml to app folder? Then i will have 2 AndroidManifest.xml files.
I copied AndroidManifest.xml to app folder and build app:
result>APP BUILDS
meteor add cordova:cordova-plugin-device@2.0.3
meteor run android-device
result>APP BUILDS
Added phonegap-plugin-push@2.1.2 to cordova-plugins
meteor run android-device
result>ERROR
What went wrong: Execution failed for task ':app:processDebugGoogleServices'. File google-services.json is missing. The Google Services Plugin cannot function without it.
result>ERROR
What went wrong: Execution failed for task ':app:processDebugGoogleServices'. No matching client found for package name 'com.idh35i361d1pil.yk17zv6fodte'
App.info({ id: "com.gvisp.smartshoppinguser", });
result>ERROR
/home/borivojeskrbina/Documents/meteor/push-test/.meteor/local/cordova-build/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. Note: Some input files use unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details. java.lang.IllegalStateException: Dex archives: setting .DEX extension only for .CLASS files
What went wrong: Execution failed for task ':app:transformClassesWithDexBuilderForDebug'. com.android.build.api.transform.TransformException: java.lang.IllegalStateException: Dex archives: setting .DEX extension only for .CLASS files
Can you tell me why build fails? I didn't do any coding yet, just trying to build.
Thanks for help.
The text was updated successfully, but these errors were encountered: