我想给Kotlin一枪.我将
java类转换为Kotlin,并纠正了一些错误.如果我尝试构建,出现以下错误:
Error:Execution Failed for task ':app:generateDebugInstantRunAppInfo'. > Cannot find main merged manifest.
这是清单文件:
<?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="mdrueke.kniffel"> <application android:allowBackup="true" android:icon="@mipmap/ic_launcher" android:label="@string/app_name" android:roundIcon="@mipmap/ic_launcher_round" android:supportsRtl="true" android:theme="@style/AppTheme"> <activity android:name=".MainActivity" android:label="@string/app_name" android:theme="@style/AppTheme.NoActionBar" android:windowSoftInputMode="adjustPan"> </activity> <activity android:name=".Setup_Activity" android:windowSoftInputMode="adjustPan"> <intent-filter> <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LAUNCHER" /> </intent-filter> </activity> </application> </manifest>
谢谢你的帮助!