eclipse转Android studio遇到的那些坑
使用NDK时。NDK not configured
http://stackoverflow.com/questions/20674650/how-to-configure-ndk-with-android-gradle-plugin-0-7
在NDK libproject下的 build.gradle中加入
|
1
2
3
4
5
6
7
8
9
10
11
12
|
productFlavors {
arm {
ndk {
abiFilters
"armeabi"
,
"armeabi-v7a"
}
}
x86 {
ndk {
abiFilter
"x86"
}
}
}
|
或者
|
1
2
3
4
5
6
7
|
buildTypes {
debug {
ndk {
abiFilters
"armeabi"
,
"armeabi-v7a"
}
}
}
|
File > Settings > Build, Execution, Deployment > Compiler
电脑配置可能不够用,所以開始不断尝试改动占用内存相关的东西。并最终取得了进展。关键代码是build.gradle中的:
dexOptions {
javaMaxHeapSize "xx"
dexOptions { javaMaxHeapSize "xx" }
> java.lang.RuntimeException: Manifest merger failed : Attribute application@theme value=(@style/Theme.Sherlock) from [debug] AndroidManifest.xml:22:9-46
is also present at [branch_20151216_1.5.0_01_copy:emuUtils:unspecified] AndroidManifest.xml:15:9-40 value=(@style/AppTheme).
tools :replace= "android:configChanges"
android :name= "xxxxx"
android :configChanges= "mcc|mnc|locale|touchscreen|keyboard|keyboardHidden|navigation|orientation|screenLayout|fontScale|uiMode|screenSize|smallestScreenSize"
android :label= "@string/N64_Name"
android :process= ":game"
android :theme= "@style/appTheme.Black" >
android :name= "xxxx"
android :configChanges= "mcc|mnc|locale|touchscreen|keyboard|keyboardHidden|navigation|orientation|screenLayout|fontScale|uiMode|screenSize|smallestScreenSize"
android :label= "@string/app_name"
android :theme= "@android:style/Theme.Holo.Light.Dialog"
tools :targetApi= "11" >
exclude 'META-INF/NOTICE' // will not include NOTICE file
exclude 'META-INF/LICENSE' // will not include LICENSE file
我友盟pushsdk中的okio包去掉。引用libray就可以。
<action android :name= "android.intent.action.MAIN" />
<category android :name= "android.intent.category.LAUNCHER" />
转自:https://www.cnblogs.com/gavanwanggw/p/7093105.html
2349




被折叠的 条评论
为什么被折叠?



