Viewing 12 posts - 1 through 12 (of 12 total)
-
AuthorPosts
-
January 8, 2020 at 12:44 pm #42280
DanteParticipantAfter running Build command I get this: * What went wrong: Could not resolve all files for configuration ':app:debugCompileClasspath'. > Could not resolve com.android.support:support-v4:24.1.1+. Required by: project :app > Failed to list versions for com.android.support:support-v4. > Unable to load Maven meta-data from https://jcenter.bintray.com/com/android/support/support-v4/maven-metadata.xml. > Could not get resource 'https://jcenter.bintray.com/com/android/support/support-v4/maven-metadata.xml'. > Could not GET 'https://jcenter.bintray.com/com/android/support/support-v4/maven-metadata.xml'. > Remote host closed connection during handshake * 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 1m 7s [ERROR] An error occurred while running subprocess cordova. cordova.cmd build android exited with exit code 1.January 10, 2020 at 7:15 am #42406
Scott LangKeymasterrefer to this android studio setting: http://prntscr.com/qkag1g http://prntscr.com/qkah1a http://prntscr.com/qkah65January 14, 2020 at 5:08 am #42596
DanteParticipantI did that now I get this * What went wrong: Execution failed for task ':app:transformClassesWithMultidexlistForDebug'. > com.android.build.api.transform.TransformException: Error while generating the main dex list: Error while merging dex archives: Learn how to resolve the issue at https://developer.android.com/studio/build/dependencies#duplicate_classes. Program type already present: com.google.zxing.ChecksumException how to fix this ?January 15, 2020 at 2:24 pm #42727
Scott LangKeymasterWe have also faced the above error. Please remove the platform and add again. We are using android platform :6.3.0 Ionic cordova add [email protected] Also if you are facing an error share screenshot of android studio configuration with us.January 16, 2020 at 5:40 am #42769
DanteParticipantThank you , I think the command you meant is " ionic cordova platform add [email protected] " I will try nowJanuary 16, 2020 at 2:53 pm #42794
DanteParticipantI added [email protected] now I get this error : FAILURE: Build failed with an exception. * Where: Script 'C:\interlan\platforms\android\cordova-support-google-services\app-build.gradle' line: 3 * What went wrong: A problem occurred evaluating script. > Could not find method google() for arguments [] on repository container. Here is my Android studio config: https://prnt.sc/qolqbx https://prnt.sc/qolqpuJanuary 17, 2020 at 10:22 am #42830
Scott LangKeymasterAlso, you need to use google-services.json here:http://prntscr.com/qoz1u2 http://prntscr.com/qoz2ra It is some ionic setup configuration issue. Also, the android studio uses custom Gradle configuration. You have to configure in your system too from here:https://gradle.org/install/ You can check if Gradle is properly configured or not. Then proceed for the build.January 17, 2020 at 3:15 pm #42844
DanteParticipantHi I copied the " google-services.json " into the root directory of app project folder and also in the Platform/android and app But nothing changed still the same error and also it says the [email protected] is not compatible with push notification plugin. FAILURE: Build failed with an exception. * Where: Script 'C:\interlan\platforms\android\cordova-support-google-services\app-build.gradle' line: 3 * What went wrong: A problem occurred evaluating script. > Could not find method google() for arguments [] on repository container. Can I ask you to give me the platform folder of your own project I think If I replace it with yours will work Note: I am pretty sure the gradle in installed correctly I tested this out in both mac and windows and same issueJanuary 20, 2020 at 9:55 am #42988
Scott LangKeymasterWe are using latest android platform for build apk. But as android 6.3.0 is not supported for your build you have to use the latest version also you have to place google-service JSON to your given directories.January 21, 2020 at 7:12 am #43021
DanteParticipantI used the latest stable android [email protected] and I placed my google-service JSON to the given directores (Root & PLATFORM/ANDROID/APP ) But the issue remained same I would really appreciate if you give me your PLATFORM/ANDROID folder I am sure I use yours It works " At the moment I can only compile 2.6 so I missed attendance and push etc features in the app " I have bought those plugins for these nice and handy features So please Give me you android platform folder or just give me a new apk https://interlan.app/wp-content/uploads/2019/12/interlan-for-ios.zipJanuary 21, 2020 at 8:26 am #43027
DanteParticipantNote for multi dex issue I found this https://developer.android.com/studio/build/multidex.html But cannot understandJanuary 21, 2020 at 10:58 am #43029
Scott LangKeymasterHere is our platform folder:https://we.tl/t-Fn5I3MZ0Aj config.xml and package.json:https://we.tl/t-WRq7B04vPE -
AuthorPosts
Viewing 12 posts - 1 through 12 (of 12 total)
- You must be logged in to reply to this topic.