Tag: 清单

Android Studio不能应用我的设计更改

我试图通过删除操作栏或更改标题来更改某些活动的主题。 起初,我正在使用设计选项卡中的AppTheme选项。 但是,在网上搜索后,我知道我做的是错误的方式,所以我进入AndroidManifest文件手动进行更改。 不幸的是,它也不工作。 这是我的清单文件的代码: <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="net.wonderheart"> <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" /> <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /> <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="Sign Up"/> <activity android:name=".Login" android:label="Log In"/> <activity android:name=".drawable.welcome"> <intent-filter> <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LAUNCHER" /> </intent-filter> </activity> <activity android:name=".UserProfile" android:theme="@style/AppTheme.NoActionBar"/> <activity android:name=".HomePage" > </activity> </application> </manifest> 以下是我尝试更改的一些活动: 成功更改 操作栏标题操作栏标题未更改 […]

包在一个JAR中的Kotlin .kt类

如何构建HelloWorld.kt作为JAR以便运行? thufir@dur:~/kotlin$ thufir@dur:~/kotlin$ kotlinc HelloWorld.kt –include-runtime -d HelloWorld.jar error: invalid argument: –include-runtime info: use -help for more information thufir@dur:~/kotlin$ thufir@dur:~/kotlin$ thufir@dur:~/kotlin$ kotlinc HelloWorld.kt -d HelloWorld.jar WARNING: An illegal reflective access operation has occurred WARNING: Illegal reflective access by com.intellij.util.text.StringFactory to constructor java.lang.String(char[],boolean) WARNING: Please consider reporting this to the maintainers of com.intellij.util.text.StringFactory WARNING: Use –illegal-access=warn […]