我正在寻找一段时间如何找出库之间的依赖关系,但我没有找到任何东西.例如,在我的build.gradle中
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
androidTestCompile 'com.android.support:support-annotations:25.4.0'
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.4.0'
compile 'com.android.support.constraint:constraint-layout:1.0.2'
compile 'com.android.support.constraint:constraint-layout-solver:1.0.2'
testCompile 'junit:junit:4.12'
androidTestCompile 'com.android.support.test:runner:1.0.1'
androidTestCompile 'com.android.support.test:rules:1.0.1'
// androidTestCompile 'org.hamcrest:hamcrest-library:1.3'
androidTestCompile 'com.android.support.test.espresso:espresso-core:3.0.1'
androidTestCompile 'com.android.support.test.uiautomator:uiautomator-v18:2.1.3'
Run Code Online (Sandbox Code Playgroud)
我怎么知道我可以使用哪些版本?(例如,com.android.support:support-annotations:25.4.0是否与com.android.support兼容:appcompat-v7:25.4.0等?)这是否记录在案?例如,Android Studio告诉我,我可以使用更新的版本突出显示黄色的行并说出更新的版本.但是如果我改变它,我最终会得到构建,如果我运行测试但不构建应用程序.或相反亦然.
例如,我收到一个错误
错误:任务':app:transformClassesWithInstantRunForDebug'的执行失败.
意外输入:ImmutableJarInput {name = com.android.support:support-media-compat:25.3.1,file = C:\ MyApp\app\build\intermediates\transforms\desugar\debug\73.jar,contentTypes = CLASSES, scopes = EXTERNAL_LIBRARIES,status = REMOVED},ImmutableJarInput {name = com.android.support:animated-vector-drawable:25.3.1,file = C:\ MyApp\app\build\intermediates\transforms\desugar\debug\69. jar,contentTypes = CLASSES,scopes = EXTERNAL_LIBRARIES,status = REMOVED},ImmutableJarInput {name = com.android.support:appcompat-v7:25.3.1,file = C:\ MyApp\app\build\intermediates\transforms\desugar\debug\68.jar,contentTypes = CLASSES,scopes = EXTERNAL_LIBRARIES,status = REMOVED},ImmutableJarInput …
我想转换
List<Tuple<IntPtr, string, string>>
Run Code Online (Sandbox Code Playgroud)
成
Dictionary<IntPtr, Tuple<string,string>>
Run Code Online (Sandbox Code Playgroud)
运用
ToDictionary
Run Code Online (Sandbox Code Playgroud)
即
var T = new List<Tuple<IntPtr, string, string>>();
T.ToDictionary(/*I cannot figure out the right syntax*/);
Run Code Online (Sandbox Code Playgroud)
我找到的所有例子只有2个参数,而我有3个.