lnln1111 / android-apktool

Automatically exported from code.google.com/p/android-apktool
Other
0 stars 0 forks source link

how to specify sdk version where build a apk package? #263

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
i use apktool to decode apk file ,and build a new apk file use "apktool b apdir 
ap.apk" , but when i install the new apk in my phone , a error display on 
screen :

 "You must have AdActivity declared in AndroidManifest.xml with configChanges.
" 

the apk has a admob ad, the origin apk does not show this error,  when install 
the new apk which is build by apktool,  and it display the error information.

the admob ad sdk version is 4.3.1 .

and i find the admob offical document, it says "The Google AdMob Ads SDK for 
Android requires Android 1.5 or later. Make sure you have the latest copy of 
the Android SDK and that you're compiling against at least Android v3.2 (set 
target in default.properties to android-13)."

how can i specify the android version when use apktool build a apk?
thanks

Original issue reported on code.google.com by superuse...@gmail.com on 12 Dec 2011 at 8:20

GoogleCodeExporter commented 9 years ago
I put this same comment on Issue #304

I came across this before. It looks like apktool at some point creates a file: 

(Windows)C:\Users\%Username%\apktool\framework\1.apk 
(Linux)/home/%Username%/apktool/framework/1.apk

Not sure how or when it is created but it looks like (purely guessing) it gets 
created on the first execution of the apktool. It appears that it does not get 
updated when you update the SDK. 

Deleting that file and running apktool after updating the Android SDK seems to 
create a new framework/1.apk file that supports the latest SDK and should 
hopefully solve the issue mentioned above.

Original comment by ruairito...@gmail.com on 23 Jul 2012 at 11:35

GoogleCodeExporter commented 9 years ago

Original comment by connor.tumbleson on 17 Nov 2012 at 12:06

GoogleCodeExporter commented 9 years ago
It is also doing this with Google photos and a few other apps I have, when I 
open them.

Original comment by geoscrug...@gmail.com on 11 Jan 2014 at 9:04