顯示具有 android error 標籤的文章。 顯示所有文章
顯示具有 android error 標籤的文章。 顯示所有文章

2018年2月2日 星期五

Android Studio 2.3 升到 3.0.1 遇到問題

1.gradle apk 輸出問題


android {
1414 compileSdkVersion 19
15 - buildToolsVersion "25.0.2"
1615
1716 def versionNameFirstNumber = "01"
1817 def versionCodeNumber = 106
......@@ -47,12 +46,12 @@ android {
4746 targetCompatibility JavaVersion.VERSION_1_7
4847 }
4948
50 - applicationVariants.all { variant ->
51 - variant.outputs.each { output ->
52 - def file = output.outputFile
53 - output.outputFile = new File(file.parent, "test_name${variant.versionName}.apk") // _${variant.buildType.name}
 49+ android.applicationVariants.all { variant ->
 50+ variant.outputs.all {
 51+ outputFileName = "test_name${variant.versionName}.apk"
5452 }
5553 }
 54+
5655 }

2015年9月21日 星期一

android 學習筆記_注意consturctors_2015.9.21


error
此error為 建構子 格式不對 例如:少了一個參數(值)


點Create consturctors  就知道少了一個參數  要一致

點了Create consturctors之後會變成
AS自動還幫你新寫出出新建構子函式
參數1變成2個欄位