Search the Community
Showing results for tags 'Java'.
-
Hello everyone, I have faced with the issue: Error:Execution failed for task ':app:transformResourcesWithMergeJavaResForDebug'. > com.android.build.api.transform.TransformException: com.android.builder.packaging.DuplicateFileException: Duplicate files copied in APK org/apache/http/version.properties File1: /my_path/.gradle/caches/modules-2/files-2.1/org.apache.httpcomponents/httpcore/4.4.1/f5aa318bda4c6c8d688c9d00b90681dcd82ce636/httpcore-4.4.1.jar File2: /my_path/.gradle/caches/modules-2/files-2.1/com.atlassian.httpclient/atlassian-httpclient-plugin/0.23.0/4c7a2c52647a4f04b39cfcedbe20e3189318033c/atlassian-httpclient-plugin-0.23.0.jar After this I have figured out that it is because of one file in different jar-files that to be tried to put in one APK After this I have made the following: dependencies { compile fileTree(dir: 'libs', include: ['*.jar']) androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', { exclude group: 'com.android.support', module: 'support-annotations' }) compile 'com.android.support:appcompat-v7:25.3.1' compile 'com.android.support.constraint:constraint-layout:1.0.2' compile 'com.android.support:design:25.3.1' testCompile 'junit:junit:4.12' compile 'com.google.android.gms:play-services-maps:10.2.1' compile 'com.google.android.gms:play-services-ads:10.2.1' compile 'com.atlassian.fugue:fugue:2.6.1' { exclude 'org/apache/http/version.properties' // } compile 'org.slf4j:slf4j-simple:1.6.4' compile 'com.atlassian.jira:jira-rest-java-client-api:4.0.0' { exclude 'org/apache/http/version.properties' // } compile 'com.atlassian.jira:jira-rest-java-client-core:4.0.0' { exclude 'org/apache/http/version.properties' // } } The following error appears: Error:(50, 0) Could not find method com.atlassian.fugue:fugue:2.6.1() for arguments [build_dju2brfdvsjccdeildw7l7bud$_run_closure2$_closure9@704ab943] on object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler. Open File With this error I have stuck ... Does anybody know how to fix it ?
-
Dear All, My application requires to to send an ARP(Adress Resolution protocol ) request from the Android application layer. As ARP is based on RAW Sockets,with the initial investigation, It is shown that RAW sockets are not accessible from Java or through any android API's. I also tried to send a request via a native language, but this requires super user permission. Rooting a phone to run this is not a feasible option as this is just an application development. Please let us know if there any way to send an ARP request from Android application without rooting a phone. Thanks in Advance,
-
Hello, I did a search on this forum and did not find a solution. This is my first time using the forum by the way. Ayways, I am developing my first application with one main activity that has two buttons each trying to open another activity. When I try to run the app in Eclipse, I get the following error: Error opening trace file: No such file or directory (2) Any direction on how I can solve this would be greatly appreciated.
-
Hi My phone is samsungGTI5500 (samsung galaxy 5) , Can I install Java app on it? My android version is 2.3.7 (CyanogenMod 7.1.0) Thanks in advance