關於flutter使用barcode_scan實現二維碼掃描遇到的問題總結

關於 Failed to resolve: org.jetbrains.kotlin:kotlin-stdlib-jre7的錯誤android

// 這個錯誤稍微不注意就容易容易犯,因此記錄一下這個錯誤。
在高版本的kotlin插件module下的gradle.build內的引用須要將下面引用

implementation "org.jetbrains.kotlin:kotlin-stdlib-jre7:$kotlin_version"
// 修改成
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"

// 仔細看引用的末端低版本的是jre7,高版本的是jdk7
複製代碼

關於Output: AndroidManifest.xml:17: error: unexpected element <activity> found in <manifest>.bash

// activity標籤外層包裹上application
     <application>
        <activity android:name="com.apptreesoftware.barcodescan.BarcodeScannerActivity"/>
    </application> 
複製代碼
相關文章
相關標籤/搜索