反编译改包名的问题 反编译后修改package就行。不会影响功能的至于闪退,肯定是回编译有错,需要重新弄。 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 我把 andoriodMainfest.xml 里面的 package="com.japanese.studyN2" 改为 package="com.japanese.studyN1"结果就不行,回编译没看到报错 manifest里,activity、application、service等注册是否是全名的?不要出现 有的像android:name=".MyApplication"这样的省略,有的是完整包名加类名如果全部是完整包名加类名,那么该package应该没有任何问题。这个我在用过好几次了 <application android:label="@string/app_name" android:icon="@drawable/icon" android:name=".controller.Controller"> <activity android:theme="@style/NoTitleBarFullScreen" android:label="@string/app_name" android:name=".JapaneseStudyForN2Activity" android:screenOrientation="portrait" android:configChanges="keyboard|orientation" android:windowSoftInputMode="stateAlwaysHidden|adjustPan"> <intent-filter> <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LAUNCHER" /> </intent-filter> </activity> <activity android:theme="@style/NoTitleBarFullScreen" android:label="@string/app_name" android:name=".view.WordActivity" android:screenOrientation="portrait" android:configChanges="keyboard|orientation" android:windowSoftInputMode="stateAlwaysHidden|adjustPan" /> <activity android:theme="@style/NoTitleBarFullScreen" android:label="@string/app_name" android:name=".view.MainActivity" android:screenOrientation="portrait" android:configChanges="keyboard|orientation" android:windowSoftInputMode="stateAlwaysHidden|adjustPan" /> <activity android:theme="@style/NoTitleBarFullScreen" android:label="@string/app_name" android:name=".view.MediaActivity" android:screenOrientation="portrait" android:configChanges="keyboard|orientation" android:windowSoftInputMode="stateAlwaysHidden|adjustPan" /> <activity android:theme="@style/NoTitleBarFullScreen" android:label="@string/app_name" android:name=".view.SyntaxActivity" android:screenOrientation="portrait" android:configChanges="keyboard|orientation" android:windowSoftInputMode="stateAlwaysHidden|adjustPan" /> <activity android:theme="@style/NoTitleBarFullScreen" android:label="@string/app_name" android:name=".view.Setting" android:screenOrientation="portrait" android:configChanges="keyboard|orientation" android:windowSoftInputMode="stateAlwaysHidden|adjustPan"> <intent-filter> <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.DEFAULT" /> </intent-filter> </activity> <activity android:theme="@style/NoTitleBarFullScreen" android:label="@string/app_name" android:name=".view.NewInfoActivity" android:screenOrientation="portrait" android:configChanges="keyboard|orientation" android:windowSoftInputMode="stateAlwaysHidden|adjustPan" /> <activity android:theme="@style/NoTitleBarFullScreen" android:label="@string/app_name" android:name=".view.EveryDayWord" android:screenOrientation="portrait" android:configChanges="keyboard|orientation" android:windowSoftInputMode="stateAlwaysHidden|adjustPan" /> <activity android:theme="@style/NoTitleBarFullScreen" android:label="@string/app_name" android:name=".view.EveryDaySyntax" android:screenOrientation="portrait" android:configChanges="keyboard|orientation" android:windowSoftInputMode="stateAlwaysHidden|adjustPan" /> <activity android:theme="@style/NoTitleBarFullScreen" android:label="@string/app_name" android:name=".view.InfoActivity" android:screenOrientation="portrait" android:configChanges="keyboard|orientation" android:windowSoftInputMode="stateAlwaysHidden|adjustPan" /> <activity android:theme="@style/NoTitleBarFullScreen" android:label="@string/app_name" android:name=".view.OtherActivity" android:screenOrientation="portrait" android:configChanges="keyboard|orientation" android:windowSoftInputMode="stateAlwaysHidden|adjustPan" /> <activity android:theme="@style/NoTitleBarFullScreen" android:label="@string/app_name" android:name=".view.MyAppActivity" android:screenOrientation="portrait" android:configChanges="keyboard|orientation" android:windowSoftInputMode="stateAlwaysHidden|adjustPan" /> <service android:name=".db.DBCopySerivce" /> </application>好像有你所说的 <activity android:theme="@style/NoTitleBarFullScreen" android:label="@string/app_name" android:name=".view.MyAppActivity" android:screenOrientation="portrait" android:configChanges="keyboard|orientation" android:windowSoftInputMode="stateAlwaysHidden|adjustPan" /> <service android:name=".db.DBCopySerivce" /> 好多都是省略的写法……那修改之后是否好了呢?因为我的经验也不是很足,只是在我处理的apk成功了,可能还会有其他问题导致失败。 android:name="com.japanese.studyN1.view.MediaActivity"都给完整地加上了,结果编译出来的 apk,还是闪退 不是加修改后的,建议全部用修改前的。你程序中有自定义view的调用么,是否有ndk调java的方法,是否有用包名的跳转等等,很多都是用源码的信息。特别是你要“干坏事”的时候你更不会去看别人的实现了。所以我就是只改package名,其他都不修改。安装的时候依然会当作第二个应用的(识别package的) 他原来的类的地址是以com.japanese.studyN2开头的 你改掉不闪退才怪你下面把他补全补成com.japanese.studyN1开头的,但是他本身还是com.japanese.studyN2开头的,找不到类了么,不就闪退了? 你下面把他补全补成com.japanese.studyN1开头的,但是他本身还是com.japanese.studyN2开头的,找不到类了么,不就闪退了?这是什么意思 android 怎么解析epub啊? android新浪微博认证出错 Android数据库打包 复制问题? 关闭输入法 Intent.FLAG_RECEIVER_REGISTERED_ONLY 关于 android xmlSerializer 的问题 android framework层的网络选择问题!!!!! android访问网络的问题 。 listview里只有一行,但要让这行充满整个屏幕 android上操作word java.net.ProtocolException 错误 Android 开发中 对下上两个图层的相关操作问题,求大神果断喷我吧!
不要出现 有的像android:name=".MyApplication"这样的省略,有的是完整包名加类名如果全部是完整包名加类名,那么该package应该没有任何问题。这个我在用过好几次了
<application android:label="@string/app_name" android:icon="@drawable/icon" android:name=".controller.Controller">
<activity android:theme="@style/NoTitleBarFullScreen" android:label="@string/app_name" android:name=".JapaneseStudyForN2Activity" android:screenOrientation="portrait" android:configChanges="keyboard|orientation" android:windowSoftInputMode="stateAlwaysHidden|adjustPan">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity android:theme="@style/NoTitleBarFullScreen" android:label="@string/app_name" android:name=".view.WordActivity" android:screenOrientation="portrait" android:configChanges="keyboard|orientation" android:windowSoftInputMode="stateAlwaysHidden|adjustPan" />
<activity android:theme="@style/NoTitleBarFullScreen" android:label="@string/app_name" android:name=".view.MainActivity" android:screenOrientation="portrait" android:configChanges="keyboard|orientation" android:windowSoftInputMode="stateAlwaysHidden|adjustPan" />
<activity android:theme="@style/NoTitleBarFullScreen" android:label="@string/app_name" android:name=".view.MediaActivity" android:screenOrientation="portrait" android:configChanges="keyboard|orientation" android:windowSoftInputMode="stateAlwaysHidden|adjustPan" />
<activity android:theme="@style/NoTitleBarFullScreen" android:label="@string/app_name" android:name=".view.SyntaxActivity" android:screenOrientation="portrait" android:configChanges="keyboard|orientation" android:windowSoftInputMode="stateAlwaysHidden|adjustPan" />
<activity android:theme="@style/NoTitleBarFullScreen" android:label="@string/app_name" android:name=".view.Setting" android:screenOrientation="portrait" android:configChanges="keyboard|orientation" android:windowSoftInputMode="stateAlwaysHidden|adjustPan">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
<activity android:theme="@style/NoTitleBarFullScreen" android:label="@string/app_name" android:name=".view.NewInfoActivity" android:screenOrientation="portrait" android:configChanges="keyboard|orientation" android:windowSoftInputMode="stateAlwaysHidden|adjustPan" />
<activity android:theme="@style/NoTitleBarFullScreen" android:label="@string/app_name" android:name=".view.EveryDayWord" android:screenOrientation="portrait" android:configChanges="keyboard|orientation" android:windowSoftInputMode="stateAlwaysHidden|adjustPan" />
<activity android:theme="@style/NoTitleBarFullScreen" android:label="@string/app_name" android:name=".view.EveryDaySyntax" android:screenOrientation="portrait" android:configChanges="keyboard|orientation" android:windowSoftInputMode="stateAlwaysHidden|adjustPan" />
<activity android:theme="@style/NoTitleBarFullScreen" android:label="@string/app_name" android:name=".view.InfoActivity" android:screenOrientation="portrait" android:configChanges="keyboard|orientation" android:windowSoftInputMode="stateAlwaysHidden|adjustPan" />
<activity android:theme="@style/NoTitleBarFullScreen" android:label="@string/app_name" android:name=".view.OtherActivity" android:screenOrientation="portrait" android:configChanges="keyboard|orientation" android:windowSoftInputMode="stateAlwaysHidden|adjustPan" />
<activity android:theme="@style/NoTitleBarFullScreen" android:label="@string/app_name" android:name=".view.MyAppActivity" android:screenOrientation="portrait" android:configChanges="keyboard|orientation" android:windowSoftInputMode="stateAlwaysHidden|adjustPan" />
<service android:name=".db.DBCopySerivce" />
</application>好像有你所说的
<activity android:theme="@style/NoTitleBarFullScreen" android:label="@string/app_name" android:name=".view.MyAppActivity" android:screenOrientation="portrait" android:configChanges="keyboard|orientation" android:windowSoftInputMode="stateAlwaysHidden|adjustPan" />
<service android:name=".db.DBCopySerivce" />
那修改之后是否好了呢?
因为我的经验也不是很足,只是在我处理的apk成功了,可能还会有其他问题导致失败。
android:name="com.japanese.studyN1.view.MediaActivity"都给完整地加上了,结果编译出来的 apk,还是闪退
你程序中有自定义view的调用么,是否有ndk调java的方法,是否有用包名的跳转等等,很多都是用源码的信息。
特别是你要“干坏事”的时候你更不会去看别人的实现了。所以我就是只改package名,其他都不修改。
安装的时候依然会当作第二个应用的(识别package的)
这是什么意思