I use the Android studio 2.0 vesion to run porgram:
But have the question:
I search for long time, But have the right answer
you can get answer in the link:
https://code.google.com/p/android/issues/detail?id=192835
resolve way:
packagingOptions { exclude 'META-INF/maven/com.belerweb/pinyin4j/pom.properties' exclude 'META-INF/maven/com.belerweb/pinyin4j/pom.xml'}
I think, Because the libs infomation. I find this quesiton by myself. Because I see this:
So I know. why take this question. In the Android sutdio 2.0 version. The gradle build the program, it will scan the libs, I know this. But know. it will by the pom.properties info will ckeckout pingyin4j.jar twice in the mevanCenter. So you must in the gradle
config this code: you must know in where!
packagingOptions { exclude 'META-INF/maven/com.belerweb/pinyin4j/pom.properties' exclude 'META-INF/maven/com.belerweb/pinyin4j/pom.xml'}
You can use gradle build this question. But when I run the program. I meet the new question:
http://stackoverflow.com/questions/33967703/unable-to-instantiate-application-com-android-tools-fd-runtime-bootstrapapplicat
Now I don't know how to reslove the new question!
But I choise a bad way to reslove the question.
I use the stable verion android studio 1.4.0
So it is resolve! So I know The question is about the Android studio 2.0 versoion! It is not stabley!
refence link:
1 https://code.google.com/p/android/issues/detail?can=2&start=0&num=100&q=&colspec=ID%20Type%20Status%20Owner%20Summary%20Stars&groupby=&sort=&id=192835
2 https://code.google.com/p/android/issues/detail?can=2&start=0&num=100&q=&colspec=ID%20Type%20Status%20Owner%20Summary%20Stars&groupby=&sort=&id=192835
3 http://stackoverflow.com/questions/25015539/gradle-android-optimize-packagingoptions
4 http://stackoverflow.com/questions/33967703/unable-to-instantiate-application-com-android-tools-fd-runtime-bootstrapapplicat
No comments:
Post a Comment