{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/react-native/issues/3502","labels_url":"https://api.github.com/repos/facebook/react-native/issues/3502/labels{/name}","comments_url":"https://api.github.com/repos/facebook/react-native/issues/3502/comments","events_url":"https://api.github.com/repos/facebook/react-native/issues/3502/events","html_url":"https://github.com/facebook/react-native/issues/3502","id":112061116,"number":3502,"title":"Can not Integration with already exist android project    ","user":{"login":"carl1990","id":5353708,"avatar_url":"https://avatars.githubusercontent.com/u/5353708?v=3","gravatar_id":"","url":"https://api.github.com/users/carl1990","html_url":"https://github.com/carl1990","followers_url":"https://api.github.com/users/carl1990/followers","following_url":"https://api.github.com/users/carl1990/following{/other_user}","gists_url":"https://api.github.com/users/carl1990/gists{/gist_id}","starred_url":"https://api.github.com/users/carl1990/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/carl1990/subscriptions","organizations_url":"https://api.github.com/users/carl1990/orgs","repos_url":"https://api.github.com/users/carl1990/repos","events_url":"https://api.github.com/users/carl1990/events{/privacy}","received_events_url":"https://api.github.com/users/carl1990/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/facebook/react-native/labels/Android","name":"Android","color":"bfe5bf"},{"url":"https://api.github.com/repos/facebook/react-native/labels/Needs%20more%20information","name":"Needs more information","color":"f7c6c7"}],"state":"open","locked":false,"assignee":{"login":"foghina","id":412054,"avatar_url":"https://avatars.githubusercontent.com/u/412054?v=3","gravatar_id":"","url":"https://api.github.com/users/foghina","html_url":"https://github.com/foghina","followers_url":"https://api.github.com/users/foghina/followers","following_url":"https://api.github.com/users/foghina/following{/other_user}","gists_url":"https://api.github.com/users/foghina/gists{/gist_id}","starred_url":"https://api.github.com/users/foghina/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/foghina/subscriptions","organizations_url":"https://api.github.com/users/foghina/orgs","repos_url":"https://api.github.com/users/foghina/repos","events_url":"https://api.github.com/users/foghina/events{/privacy}","received_events_url":"https://api.github.com/users/foghina/received_events","type":"User","site_admin":false},"milestone":null,"comments":2,"created_at":"2015-10-19T02:44:14Z","updated_at":"2015-10-23T08:43:59Z","closed_at":null,"body":"when I integration react-native \r\nuse `compile 'com.facebook.react:react-native:0.12.+' `\r\nand the android project use also use `'com.android.support:support-v4:+'`\r\nand use buildtools info: \r\n`compileSdkVersion 23`\r\n`buildToolsVersion \"23.0.1\"`\r\n`minSdkVersion 16`\r\n`targetSdkVersion 23`\r\n\r\n but there will happen error with info:\r\n Error:Attribute \"color\" has already been defined\r\n Error:Attribute \"thickness\" has already been defined\r\n /Users/carlwei/Desktop/AXT/androidaxt/app/src/main/res/values/color.xml\r\n Error:Execution failed for task ':app:processParentDebugResources'.\r\n> com.android.ide.common.internal.LoggedErrorException: Failed to run command:\r\n  \t/Users/carlwei/Downloads/dev_soft/android-sdk-macosx/build-tools/23.0.1/aapt package -f --no-crunch -I /Users/carlwei/Downloads/dev_soft/android-sdk-macosx/platforms/android-23/android.jar -M /Users/carlwei/Desktop/AXT/androidaxt/app/build/intermediates/manifests/full/parent/debug/AndroidManifest.xml -S /Users/carlwei/Desktop/AXT/androidaxt/app/build/intermediates/res/parent/debug -A /Users/carlwei/Desktop/AXT/androidaxt/app/build/intermediates/assets/parent/debug -m -J /Users/carlwei/Desktop/AXT/androidaxt/app/build/generated/source/r/parent/debug -F /Users/carlwei/Desktop/AXT/androidaxt/app/build/intermediates/res/resources-parent-debug.ap_ --debug-mode --custom-package com.alo7.axt -0 apk --output-text-symbols /Users/carlwei/Desktop/AXT/androidaxt/app/build/intermediates/symbols/parent/debug\r\n  Error Code:\r\n  \t1\r\n  Output:\r\n  \t/Users/carlwei/Desktop/AXT/androidaxt/app/build/intermediates/res/parent/debug/values/values.xml:431: error: Attribute \"thickness\" has already been defined\r\n  \t/Users/carlwei/Desktop/AXT/androidaxt/app/build/intermediates/res/parent/debug/values/values.xml:431: error: Attribute \"color\" has already been defined\r\n  \t\r\nin act I never define this two Attribute.\r\n\r\nhow can resolve this problem\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/facebook/react-native/issues/comments/150515377","html_url":"https://github.com/facebook/react-native/issues/3502#issuecomment-150515377","issue_url":"https://api.github.com/repos/facebook/react-native/issues/3502","id":150515377,"user":{"login":"carl1990","id":5353708,"avatar_url":"https://avatars.githubusercontent.com/u/5353708?v=3","gravatar_id":"","url":"https://api.github.com/users/carl1990","html_url":"https://github.com/carl1990","followers_url":"https://api.github.com/users/carl1990/followers","following_url":"https://api.github.com/users/carl1990/following{/other_user}","gists_url":"https://api.github.com/users/carl1990/gists{/gist_id}","starred_url":"https://api.github.com/users/carl1990/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/carl1990/subscriptions","organizations_url":"https://api.github.com/users/carl1990/orgs","repos_url":"https://api.github.com/users/carl1990/repos","events_url":"https://api.github.com/users/carl1990/events{/privacy}","received_events_url":"https://api.github.com/users/carl1990/received_events","type":"User","site_admin":false},"created_at":"2015-10-23T08:43:59Z","updated_at":"2015-10-23T08:43:59Z","body":"oK this problem have resolved,but there is a new problem.\r\n`Error:Execution failed for task ':app:packageAllParentDebugClassesForMultiDex'.\r\n> java.util.zip.ZipException: duplicate entry: com/nineoldandroids/animation/Animator$AnimatorListener.class`\r\n\r\nand I nerver import `nineoldandroids` in my gradle.build file \r\nthis is my build.gradle file dependence:\r\ndependencies {\r\n    repositories {\r\n        mavenLocal()\r\n        mavenCentral()\r\n        maven { url \"https://raw.github.com/julman99/mvn-repo/master\" }\r\n        maven { url \"http://192.168.50.192:8081/nexus/content/groups/alo7Android\" }\r\n\r\n    }\r\n//    evaluationDependsOn(':base')\r\n    compile ('com.alo7.axt.android:qrcode:RCT1.0.0-SNAPSHOT@aar'){\r\n        transitive = true;\r\n        changing=true\r\n    }\r\n    aarLinkSources 'com.alo7.axt.android:qrcode:RCT1.0.0-SNAPSHOT:sources'\r\n\r\n    compile ('com.alo7.axt.android:baselib:RCT1.0.1-SNAPSHOT@aar') {\r\n        transitive = true;\r\n        changing=true\r\n    }\r\n    aarLinkSources 'com.alo7.axt.android:baselib:RCT1.0.1-SNAPSHOT:sources'\r\n\r\n    compile ('com.alo7.axt.android:openuser:RCT1.0.0-SNAPSHOT@aar') {\r\n        transitive = true;\r\n        changing=true\r\n    }\r\n    aarLinkSources 'com.alo7.axt.android:openuser:RCT1.0.0-SNAPSHOT:sources'\r\n\r\n    compile ('com.alo7.axt.android:imageviewZoom:RCT1.0.0-SNAPSHOT@aar'){\r\n        transitive = true;\r\n        changing=true\r\n    }\r\n    aarLinkSources 'com.alo7.axt.android:imageviewZoom:RCT1.0.0-SNAPSHOT:sources'\r\n\r\n    compile fileTree(dir: 'libs', include: '*.jar')\r\n    compile fileTree(dir: \"$buildDir/native-libs\", include: 'native-libs.jar')\r\n    compile 'com.android.support:multidex:1.0.0'\r\n    compile 'com.koushikdutta.ion:ion:1.3.7'\r\n    compile 'com.nostra13.universalimageloader:universal-image-loader:1.9.1'\r\n    compile 'com.jakewharton:butterknife:4.0.+'\r\n    compile 'com.google.code.gson:gson:2.2.4'\r\n    compile 'com.google.guava:guava:16.0.1'\r\n    compile 'com.github.julman99:gson-fire:0.10.0'\r\n    compile 'org.apache.commons:commons-lang3:3.3.2'\r\n    compile 'org.slf4j:slf4j-android:1.6.+'\r\n    compile 'com.j256.ormlite:ormlite-android:4.+'\r\n    compile 'net.java.dev.inflector:inflector:0.7.0'\r\n    compile 'com.squareup.picasso:picasso:2.2.+'\r\n//    compile 'com.squareup.okhttp:parent:1.5.+'\r\n    compile 'org.jsoup:jsoup:1.8.1'\r\n    compile 'de.greenrobot:eventbus:2.2.+'\r\n    compile 'joda-time:joda-time:2.3'\r\n    compile ('com.facebook.react:react-native:0.12.+') {\r\n        exclude group:'library'\r\n    }\r\n    androidTestCompile 'junit:junit:4.11'\r\n    androidTestCompile 'com.j256.ormlite:ormlite-jdbc:4.+'\r\n    androidTestCompile 'org.xerial:sqlite-jdbc:3.8.5-pre1'\r\n    androidTestCompile 'com.squareup.dagger:dagger:1.1.0'\r\n    androidTestCompile 'org.hamcrest:hamcrest-integration:1.3'\r\n    androidTestCompile 'org.hamcrest:hamcrest-core:1.3'\r\n    androidTestCompile 'org.hamcrest:hamcrest-library:1.3'\r\n    androidTestCompile 'org.robolectric:robolectric:2.3'\r\n    androidTestCompile 'com.squareup:fest-android:1.0.+'\r\n    androidTestCompile 'org.jmockit:jmockit:1.12'\r\n    /*if (!isDevBranch()) {*/\r\n    androidTestCompile 'org.jmockit:jmockit-coverage:1.12'\r\n    /*}*/\r\n    console 'org.codehaus.groovy:groovy-all:2.3.+'\r\n    console 'commons-cli:commons-cli:1.+'\r\n    console('jline:jline:2.+') {\r\n        exclude(group: 'junit', module: 'junit')\r\n    }\r\n    console 'org.codehaus.groovy:groovy-groovysh:2.3.+'"}}