我是Android新手并且每次运行应用程序时都会收到此错误 我尝试将我的avd的ram分配从512 mb更改为1024 mb
Failed to alloc 134217728 bytes for ReadBuffer
这一切开始发生在我将主题抨击材料之后。 我的andriodmanifest文件
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.shiftind.www.shiftind">
<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:supportsRtl="true"
android:theme="@style/Theme.AppCompat">
<activity android:name=".SplashScreen">
android:label="@string/app_name"
android:launchMode="singleTask"
android:theme="@style/Theme.Material.Light.NoActionBar"
android:screenOrientation="landscape" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity android:name=".MainActivity">
android:theme="@style/Theme.Material.Light.NoActionBar"
</activity>
<activity android:name=".registration" />
<activity android:name=".login" />
<activity android:name=".SignUp" />
</application>
</manifest>
我的样式文件
<resources>
<!-- Base application theme. -->
<style name="AppTheme" parent="android:Theme.Material">
<!-- Customize your theme here. -->
<item name="colorPrimary">@color/colorPrimary</item>
<item name="colorPrimaryDark">@color/colorPrimaryDark</item>
<item name="colorAccent">@color/colorAccent</item>
</style>
<style name="MyThemeNoBar" parent="android:Theme.Material.Light.NoActionBar">
<item name="android:windowNoTitle">true</item>
<item name="android:windowActionBar">false</item>
</style>